aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r--lib/VMCore/Function.cpp2
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.'