OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e01ad2d
)
the lengths of the strings are known, just use memcmp
author
Chris Lattner
<sabre@nondot.org>
Thu, 15 Feb 2007 19:26:16 +0000
(19:26 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 15 Feb 2007 19:26:16 +0000
(19:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34321
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/IntrinsicEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/IntrinsicEmitter.cpp
b/utils/TableGen/IntrinsicEmitter.cpp
index
c44ae5e
..
6247da2
100644
(file)
--- a/
utils/TableGen/IntrinsicEmitter.cpp
+++ b/
utils/TableGen/IntrinsicEmitter.cpp
@@
-93,7
+93,7
@@
EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
}
OS << " if (Len == " << I->first.size()
- << " && !
strcmp(Name, \"" << I->first << "\"
)) return Intrinsic::"
+ << " && !
memcmp(Name, \"" << I->first << "\", Len
)) return Intrinsic::"
<< I->second << ";\n";
}
OS << " }\n";