[llvm-commits] CVS: llvm/lib/VMCore/Function.cpp
John Criswell
criswell at cs.uiuc.edu
Tue Sep 9 11:37:03 PDT 2003
Changes in directory llvm/lib/VMCore:
Function.cpp updated: 1.47 -> 1.48
---
Log message:
Modified the check for intrinsic functions. All intrinsic functions have to
be at least 6 characters, since something must follow the "llvm." string in the
function name.
This seems to fix an assertion failure with the SingleSource tests, too.
---
Diffs of the changes:
Index: llvm/lib/VMCore/Function.cpp
diff -u llvm/lib/VMCore/Function.cpp:1.47 llvm/lib/VMCore/Function.cpp:1.48
--- llvm/lib/VMCore/Function.cpp:1.47 Mon Sep 8 14:44:26 2003
+++ llvm/lib/VMCore/Function.cpp Tue Sep 9 11:36:09 2003
@@ -159,7 +159,7 @@
/// llvm/Intrinsics.h.
///
unsigned Function::getIntrinsicID() const {
- if (getName().size() <= 5 || getName()[4] != '.' || getName()[0] != 'l' ||
+ if (getName().size() <= 6 || getName()[4] != '.' || getName()[0] != 'l' ||
getName()[1] != 'l' || getName()[2] != 'v' || getName()[3] != 'm')
return 0; // All intrinsics start with 'llvm.'
More information about the llvm-commits
mailing list