From 38696d2f2bd94c80bf51f5115bc90ce9c04cdcc9 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 18 Jul 2004 00:02:41 +0000 Subject: [PATCH] bug 122: - Correct an assert to not have redundant isa git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14934 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Verifier.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 0215c606c87..8b903c70fd7 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(CI.getOperand(2)) || - isa(CI.getOperand(2)), + Assert1(isa(CI.getOperand(2)), "Second argument to llvm.gcroot must be a constant!", &CI); NumArgs = 2; break; -- 2.34.1