aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-12-14 17:24:23 +0000
committerSanjay Patel <spatel@rotateright.com>2015-12-14 17:24:23 +0000
commitaf674fbfd9c120d0b65629fdf89d6b9352fdd34a (patch)
tree7e7bca7bd9db7672e44222ce2b285224e0895eb1 /llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
parent1065323eeca9301e1cfd59b8799979935c6f983d (diff)
downloadllvm-af674fbfd9c120d0b65629fdf89d6b9352fdd34a.zip
llvm-af674fbfd9c120d0b65629fdf89d6b9352fdd34a.tar.gz
llvm-af674fbfd9c120d0b65629fdf89d6b9352fdd34a.tar.bz2
getParent() ^ 3 == getModule() ; NFCI
llvm-svn: 255511
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index 74c5148..6cd61ed 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -1962,7 +1962,7 @@ Instruction *InstCombiner::visitAllocSite(Instruction &MI) {
if (InvokeInst *II = dyn_cast<InvokeInst>(&MI)) {
// Replace invoke with a NOP intrinsic to maintain the original CFG
- Module *M = II->getParent()->getParent()->getParent();
+ Module *M = II->getModule();
Function *F = Intrinsic::getDeclaration(M, Intrinsic::donothing);
InvokeInst::Create(F, II->getNormalDest(), II->getUnwindDest(),
None, "", II->getParent());