summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-07-28 23:58:15 +0000
committerJustin Lebar <jlebar@google.com>2016-07-28 23:58:15 +0000
commit9cbc30103598be2d45e3c93991f2d356835860f5 (patch)
tree6231ecac604f76e76743829c12c2804896362caf /llvm/lib/IR/Verifier.cpp
parentd240a889ad7d9be18a83f56cc723f77f74e2f8de (diff)
downloadbcm5719-llvm-9cbc30103598be2d45e3c93991f2d356835860f5.tar.gz
bcm5719-llvm-9cbc30103598be2d45e3c93991f2d356835860f5.zip
Revert "Don't invoke getName() from Function::isIntrinsic().", rL276942.
This broke some out-of-tree AMDGPU tests that relied on the old behavior wherein isIntrinsic() would return true for any function that starts with "llvm.". And in general that change will not play nicely with out-of-tree backends. llvm-svn: 277087
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r--llvm/lib/IR/Verifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 7815207fd9f..d675ab98bf0 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -3657,7 +3657,7 @@ void Verifier::visitInstruction(Instruction &I) {
// Check to make sure that the "address of" an intrinsic function is never
// taken.
Assert(
- !F->hasLLVMReservedName() ||
+ !F->isIntrinsic() ||
i == (isa<CallInst>(I) ? e - 1 : isa<InvokeInst>(I) ? e - 3 : 0),
"Cannot take the address of an intrinsic!", &I);
Assert(
OpenPOWER on IntegriCloud