diff options
author | Philip Reames <listmail@philipreames.com> | 2016-04-12 18:05:10 +0000 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2016-04-12 18:05:10 +0000 |
commit | 92d1f0cb6d4f66a285e3e85bfc2d55fb96b16ae9 (patch) | |
tree | d39c5157d9a7c5adc3b1f8cb5418a59dc3ce8647 /llvm/lib/IR/Verifier.cpp | |
parent | e6a0a23e0883a2252035ad238891992ae90140c2 (diff) | |
download | bcm5719-llvm-92d1f0cb6d4f66a285e3e85bfc2d55fb96b16ae9.tar.gz bcm5719-llvm-92d1f0cb6d4f66a285e3e85bfc2d55fb96b16ae9.zip |
Introduce an GCRelocateInst class [NFC]
Previously, we were using isGCRelocate predicates. Using a subclass of IntrinsicInst is far more idiomatic. The refactoring also enables a couple of minor simplifications and code sharing.
llvm-svn: 266098
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 686c1ccfca5..8f055886efe 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -1774,11 +1774,11 @@ void Verifier::verifyStatepoint(ImmutableCallSite CS) { const CallInst *Call = dyn_cast<const CallInst>(U); Assert(Call, "illegal use of statepoint token", &CI, U); if (!Call) continue; - Assert(isa<GCRelocateInst>(Call) || isGCResult(Call), + Assert(isa<GCRelocateInst>(Call) || isa<GCResultInst>(Call), "gc.result or gc.relocate are the only value uses" "of a gc.statepoint", &CI, U); - if (isGCResult(Call)) { + if (isa<GCResultInst>(Call)) { Assert(Call->getArgOperand(0) == &CI, "gc.result connected to wrong gc.statepoint", &CI, Call); } else if (isa<GCRelocateInst>(Call)) { |