diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-26 17:46:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-26 17:46:03 +0000 |
commit | 7e763ebd982e199224a2d2e0cc802d09d2822b34 (patch) | |
tree | 59a5b969ba6243d0f922705b1df04fa9508a9395 /lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | f9474ca92802228bb792d92dbeb4ef5ba7ecc203 (diff) |
Use the RHS length instead of the LHS length. They are both the same,
but this ends up compiling code like this:
int foo(const StringRef &R) {
return R == "food";
}
to use a constant sized memcmp instead of a variable memcmp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions