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 5ef4ce47a9..74098ffc45 100644
--- a/lib/VMCore/Function.cpp
+++ b/lib/VMCore/Function.cpp
@@ -159,7 +159,7 @@ void Function::dropAllReferences() {
/// llvm/Intrinsics.h.
///
unsigned Function::getIntrinsicID() const {
- if (getName().size() <= 6 || getName()[4] != '.' || getName()[0] != 'l' ||
+ if (getName().size() <= 5 || getName()[4] != '.' || getName()[0] != 'l' ||
getName()[1] != 'l' || getName()[2] != 'v' || getName()[3] != 'm')
return 0; // All intrinsics start with 'llvm.'