diff options
author | Chris Lattner <sabre@nondot.org> | 2010-05-10 20:59:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-05-10 20:59:18 +0000 |
commit | 42dbe4943fc4d7185ddb025d001e3088b8573873 (patch) | |
tree | a36b1fe702552196b3de3b112b3adccdddb55388 /llvm/lib/VMCore/Verifier.cpp | |
parent | 609de0068aed596182a74b9ad49fc7018f9db4b3 (diff) | |
download | bcm5719-llvm-42dbe4943fc4d7185ddb025d001e3088b8573873.tar.gz bcm5719-llvm-42dbe4943fc4d7185ddb025d001e3088b8573873.zip |
simplify more.
llvm-svn: 103431
Diffstat (limited to 'llvm/lib/VMCore/Verifier.cpp')
-rw-r--r-- | llvm/lib/VMCore/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index 819a5cba729..b7853492ac7 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/lib/VMCore/Verifier.cpp @@ -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) |