summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-16 16:56:54 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-16 16:56:54 +0000
commit78d71f168cbe31df2b1c38cdf6eb7e78af5c8ee5 (patch)
tree44d7749d1cb236d2b816020a3339a3082f205c8e /llvm/lib
parent17a2ef6803279ef3b96f2bf8a12b30e1c45274b2 (diff)
downloadbcm5719-llvm-78d71f168cbe31df2b1c38cdf6eb7e78af5c8ee5.tar.gz
bcm5719-llvm-78d71f168cbe31df2b1c38cdf6eb7e78af5c8ee5.zip
Don't return 0 if the len == 5, let the assert handle that case.
Thanks, Chris. llvm-svn: 36139
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp
index 68531739f6f..edce58d6aaa 100644
--- a/llvm/lib/VMCore/Function.cpp
+++ b/llvm/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.'
OpenPOWER on IntegriCloud