Skip to content

Commit 1d27348

Browse files
committed
ValueTracking: Simplify intrinsic ID asserts
1 parent ab20086 commit 1d27348

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4687,7 +4687,7 @@ static KnownFPClass computeKnownFPClassFromContext(const Value *V,
46874687

46884688
assert(I->getFunction() == Q.CxtI->getParent()->getParent() &&
46894689
"Got assumption for the wrong function!");
4690-
assert(I->getCalledFunction()->getIntrinsicID() == Intrinsic::assume &&
4690+
assert(I->getIntrinsicID() == Intrinsic::assume &&
46914691
"must be an assume intrinsic");
46924692

46934693
if (!isValidAssumeForContext(I, Q.CxtI, Q.DT))
@@ -9537,7 +9537,7 @@ ConstantRange llvm::computeConstantRange(const Value *V, bool ForSigned,
95379537
CallInst *I = cast<CallInst>(AssumeVH);
95389538
assert(I->getParent()->getParent() == CtxI->getParent()->getParent() &&
95399539
"Got assumption for the wrong function!");
9540-
assert(I->getCalledFunction()->getIntrinsicID() == Intrinsic::assume &&
9540+
assert(I->getIntrinsicID() == Intrinsic::assume &&
95419541
"must be an assume intrinsic");
95429542

95439543
if (!isValidAssumeForContext(I, CtxI, DT))

0 commit comments

Comments
 (0)