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/Scalar/PlaceSafepoints.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/Scalar/PlaceSafepoints.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp b/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp index 379d9639f91..169a09ece02 100644 --- a/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp +++ b/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp @@ -832,8 +832,7 @@ InsertSafepointPoll(Instruction *InsertBefore, /// NOT do explicit relocation for GC support. static Value *ReplaceWithStatepoint(const CallSite &CS, /* to replace */ Pass *P) { - assert(CS.getInstruction()->getParent()->getParent()->getParent() && - "must be set"); + assert(CS.getInstruction()->getModule() && "must be set"); // TODO: technically, a pass is not allowed to get functions from within a // function pass since it might trigger a new function addition. Refactor |

