commit | d263114d7a2adc1ea1cbbaf0fc67bb7761c9f828 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Feb 15 19:26:16 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Feb 15 19:26:16 2007 +0000 |
tree | cb18edf7fbc0c70be50002bbfd667dfb34bf54f4 | |
parent | e01ad2d129640a404844b3e55c7be4405ac21a24 [diff] [blame] |
the lengths of the strings are known, just use memcmp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34321 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/IntrinsicEmitter.cpp b/utils/TableGen/IntrinsicEmitter.cpp index c44ae5e..6247da2 100644 --- a/utils/TableGen/IntrinsicEmitter.cpp +++ b/utils/TableGen/IntrinsicEmitter.cpp
@@ -93,7 +93,7 @@ } OS << " if (Len == " << I->first.size() - << " && !strcmp(Name, \"" << I->first << "\")) return Intrinsic::" + << " && !memcmp(Name, \"" << I->first << "\", Len)) return Intrinsic::" << I->second << ";\n"; } OS << " }\n";