diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-18 00:02:41 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-18 00:02:41 +0000 |
commit | 38696d2f2bd94c80bf51f5115bc90ce9c04cdcc9 (patch) | |
tree | 07149166c771c71e47a25353f478f228d392571a | |
parent | 4ec2e4c57896fa6e301f5f5a02669287c3116393 (diff) | |
download | external_llvm-38696d2f2bd94c80bf51f5115bc90ce9c04cdcc9.zip external_llvm-38696d2f2bd94c80bf51f5115bc90ce9c04cdcc9.tar.gz external_llvm-38696d2f2bd94c80bf51f5115bc90ce9c04cdcc9.tar.bz2 |
bug 122:
- Correct an assert to not have redundant isa<GlobalValue>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14934 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Verifier.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 0215c60..8b903c7 100644 --- a/lib/VMCore/Verifier.cpp +++ b/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; |