[llvm-commits] CVS: llvm/lib/VMCore/Function.cpp
Reid Spencer
reid at x10sys.com
Mon Apr 16 09:57:15 PDT 2007
Changes in directory llvm/lib/VMCore:
Function.cpp updated: 1.120 -> 1.121
---
Log message:
Don't return 0 if the len == 5, let the assert handle that case.
Thanks, Chris.
---
Diffs of the changes: (+1 -1)
Function.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/VMCore/Function.cpp
diff -u llvm/lib/VMCore/Function.cpp:1.120 llvm/lib/VMCore/Function.cpp:1.121
--- llvm/lib/VMCore/Function.cpp:1.120 Mon Apr 16 02:08:44 2007
+++ llvm/lib/VMCore/Function.cpp Mon Apr 16 11:56:54 2007
@@ -231,7 +231,7 @@
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.'
More information about the llvm-commits
mailing list