diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-16 16:56:54 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-16 16:56:54 +0000 |
commit | 9c15de11f1abc531b91c6a810107596ab3520c04 (patch) | |
tree | 13129d401bfa32455a00560a36614e076f0b6448 /lib/VMCore/Function.cpp | |
parent | 64609d341e562dc8faba14df1dc1b0aca5d9cc08 (diff) |
Don't return 0 if the len == 5, let the assert handle that case.
Thanks, Chris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 68531739f6..edce58d6aa 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -231,7 +231,7 @@ unsigned Function::getIntrinsicID(bool noAssert) const { unsigned Len = ValName->getKeyLength(); const char *Name = ValName->getKeyData(); - if (Len <= 5 || Name[4] != '.' || Name[0] != 'l' || Name[1] != 'l' + if (Len < 5 || Name[4] != '.' || Name[0] != 'l' || Name[1] != 'l' || Name[2] != 'v' || Name[3] != 'm') return 0; // All intrinsics start with 'llvm.' |