projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
the lengths of the strings are known, just use memcmp
[oota-llvm.git]
/
utils
/
TableGen
/
IntrinsicEmitter.cpp
diff --git
a/utils/TableGen/IntrinsicEmitter.cpp
b/utils/TableGen/IntrinsicEmitter.cpp
index c44ae5e4caa733f9add95ebd3eef2f6b62f858f6..6247da2af5e6b135ea9cf406935e28dd9e0ec12a 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";