summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Verifier.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-18 00:02:41 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-18 00:02:41 +0000
commit49fc8a746e48fe48b7d0a004e065a07a3f59c110 (patch)
treebac79b3cd36e55a6caea628a40c7fc4e80955c3b /llvm/lib/VMCore/Verifier.cpp
parentbbddbf3aedd8a16410ccdf0e5b8122264861ff64 (diff)
downloadbcm5719-llvm-49fc8a746e48fe48b7d0a004e065a07a3f59c110.tar.gz
bcm5719-llvm-49fc8a746e48fe48b7d0a004e065a07a3f59c110.zip
bug 122:
- Correct an assert to not have redundant isa<GlobalValue> llvm-svn: 14934
Diffstat (limited to 'llvm/lib/VMCore/Verifier.cpp')
-rw-r--r--llvm/lib/VMCore/Verifier.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp
index 0215c606c87..8b903c70fd7 100644
--- a/llvm/lib/VMCore/Verifier.cpp
+++ b/llvm/lib/VMCore/Verifier.cpp
@@ -123,8 +123,6 @@ namespace { // Anonymous namespace for class
for (Module::giterator I = M.gbegin(), E = M.gend(); I != E; ++I)
visitGlobalValue(*I);
-
-
// If the module is broken, abort at this time.
abortIfBroken();
return false;
@@ -709,8 +707,7 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
case Intrinsic::gcroot:
Assert1(FT->getNumParams() == 2,
"Illegal # arguments for intrinsic function!", IF);
- Assert1(isa<Constant>(CI.getOperand(2)) ||
- isa<GlobalValue>(CI.getOperand(2)),
+ Assert1(isa<Constant>(CI.getOperand(2)),
"Second argument to llvm.gcroot must be a constant!", &CI);
NumArgs = 2;
break;
OpenPOWER on IntegriCloud