summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CodeGenPrepare.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/CodeGen/CodeGenPrepare.cpp
parent1065323eeca9301e1cfd59b8799979935c6f983d (diff)
downloadbcm5719-llvm-af674fbfd9c120d0b65629fdf89d6b9352fdd34a.tar.gz
bcm5719-llvm-af674fbfd9c120d0b65629fdf89d6b9352fdd34a.zip
getParent() ^ 3 == getModule() ; NFCI
llvm-svn: 255511
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 30af1c54fac..3b721417ed5 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -830,7 +830,7 @@ static bool CombineUAddWithOverflow(CmpInst *CI) {
assert(*AddI->user_begin() == CI && "expected!");
#endif
- Module *M = CI->getParent()->getParent()->getParent();
+ Module *M = CI->getModule();
Value *F = Intrinsic::getDeclaration(M, Intrinsic::uadd_with_overflow, Ty);
auto *InsertPt = AddI->hasOneUse() ? CI : AddI;
OpenPOWER on IntegriCloud