diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2015-12-14 17:24:23 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2015-12-14 17:24:23 +0000 |
| commit | af674fbfd9c120d0b65629fdf89d6b9352fdd34a (patch) | |
| tree | 7e7bca7bd9db7672e44222ce2b285224e0895eb1 /llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp | |
| parent | 1065323eeca9301e1cfd59b8799979935c6f983d (diff) | |
| download | bcm5719-llvm-af674fbfd9c120d0b65629fdf89d6b9352fdd34a.tar.gz bcm5719-llvm-af674fbfd9c120d0b65629fdf89d6b9352fdd34a.zip | |
getParent() ^ 3 == getModule() ; NFCI
llvm-svn: 255511
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp index 2be3cdbee6b..3cdd8f1d069 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp @@ -1397,9 +1397,8 @@ Instruction *InstCombiner::visitFPTrunc(FPTruncInst &CI) { Value *InnerTrunc = Builder->CreateFPTrunc(II->getArgOperand(0), CI.getType()); Type *IntrinsicType[] = { CI.getType() }; - Function *Overload = - Intrinsic::getDeclaration(CI.getParent()->getParent()->getParent(), - II->getIntrinsicID(), IntrinsicType); + Function *Overload = Intrinsic::getDeclaration( + CI.getModule(), II->getIntrinsicID(), IntrinsicType); Value *Args[] = { InnerTrunc }; return CallInst::Create(Overload, Args, II->getName()); |

