Skip to content

Commit 32c0561

Browse files
committed
Attempting fix buildbot
getUserCost is faulting for some builders.
1 parent df91a0f commit 32c0561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Analysis/TargetTransformInfoImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ class TargetTransformInfoImplCRTPBase : public TargetTransformInfoImplBase {
857857
case Instruction::FPExt:
858858
case Instruction::SExt:
859859
case Instruction::ZExt:
860-
if (TargetTTI->getExtCost(I, Operands.back()) == TTI::TCC_Free)
860+
if (I && TargetTTI->getExtCost(I, Operands.back()) == TTI::TCC_Free)
861861
return TTI::TCC_Free;
862862
break;
863863
}

0 commit comments

Comments
 (0)