projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64609d3
)
Don't return 0 if the len == 5, let the assert handle that case.
author
Reid Spencer
<rspencer@reidspencer.com>
Mon, 16 Apr 2007 16:56:54 +0000
(16:56 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Mon, 16 Apr 2007 16:56:54 +0000
(16:56 +0000)
Thanks, Chris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36139
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Function.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Function.cpp
b/lib/VMCore/Function.cpp
index 68531739f6feddd74540caa4e5cecdfa8774a180..edce58d6aaa103ec7b1c150b64f85f017b5ca4da 100644
(file)
--- 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.'