simplify more.
authorChris Lattner <sabre@nondot.org>
Mon, 10 May 2010 20:59:18 +0000 (20:59 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 10 May 2010 20:59:18 +0000 (20:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103431 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Verifier.cpp

index 819a5cba72903e5c8fa7f7c99c28e7d931ecaaa9..b7853492ac7d72aa021c2c45e708c410ff6883cd 100644 (file)
@@ -1179,7 +1179,7 @@ void Verifier::VerifyCallSite(CallSite CS) {
     }
 
   // Verify that there's no metadata unless it's a direct call to an intrinsic.
-  if (!CS.getCalledFunction() || CS.getCalledFunction()->getName().size() < 5 ||
+  if (!CS.getCalledFunction() ||
       !CS.getCalledFunction()->getName().startswith("llvm.")) {
     for (FunctionType::param_iterator PI = FTy->param_begin(),
            PE = FTy->param_end(); PI != PE; ++PI)