diff options
author | Manuel Jacob <me@manueljacob.de> | 2016-01-05 04:03:00 +0000 |
---|---|---|
committer | Manuel Jacob <me@manueljacob.de> | 2016-01-05 04:03:00 +0000 |
commit | 83eefa6d2072af46c07b505991462c4c03d0aa77 (patch) | |
tree | de4b903360c29301a68bd3f66a30f706eed4783a /llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | |
parent | 5cd09ade383557a2ff2ad828ad3e00e024cef131 (diff) | |
download | bcm5719-llvm-83eefa6d2072af46c07b505991462c4c03d0aa77.tar.gz bcm5719-llvm-83eefa6d2072af46c07b505991462c4c03d0aa77.zip |
[Statepoints] Refactor GCRelocateOperands into an intrinsic wrapper. NFC.
Summary:
This commit renames GCRelocateOperands to GCRelocateInst and makes it an
intrinsic wrapper, similar to e.g. MemCpyInst. Also, all users of
GCRelocateOperands were changed to use the new intrinsic wrapper instead.
Reviewers: sanjoy, reames
Subscribers: reames, sanjoy, llvm-commits
Differential Revision: http://reviews.llvm.org/D15762
llvm-svn: 256811
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index e3634f269cf..090245d1b22 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -1747,8 +1747,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) { // Translate facts known about a pointer before relocating into // facts about the relocate value, while being careful to // preserve relocation semantics. - GCRelocateOperands Operands(II); - Value *DerivedPtr = Operands.getDerivedPtr(); + Value *DerivedPtr = cast<GCRelocateInst>(II)->getDerivedPtr(); auto *GCRelocateType = cast<PointerType>(II->getType()); // Remove the relocation if unused, note that this check is required |