bug 122:
authorReid Spencer <rspencer@reidspencer.com>
Sun, 18 Jul 2004 00:02:41 +0000 (00:02 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 18 Jul 2004 00:02:41 +0000 (00:02 +0000)
- 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

lib/VMCore/Verifier.cpp

index 0215c606c87f4db9d692c7e6378a750f8fed6355..8b903c70fd7039beac3a87ddbb104abd5e449755 100644 (file)
@@ -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;