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 | 601e768845c1fb2d9af1ac369f06ce5d15ae8f6c (patch) | |
tree | 08bc993947194fa74c9fd0790b517740132238cd /lib/VMCore | |
parent | 775aba249500147d5dcf54caad61f519af139a1d (diff) | |
download | external_llvm-601e768845c1fb2d9af1ac369f06ce5d15ae8f6c.zip external_llvm-601e768845c1fb2d9af1ac369f06ce5d15ae8f6c.tar.gz external_llvm-601e768845c1fb2d9af1ac369f06ce5d15ae8f6c.tar.bz2 |
simplify more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103431 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 819a5cb..b785349 100644 --- a/lib/VMCore/Verifier.cpp +++ b/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) |