diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2013-10-26 23:53:06 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2013-10-26 23:53:06 +0000 |
| commit | 50e5b3298c0c12d884d4719bc729d626680f302e (patch) | |
| tree | 4bdae1ab21e5c8aece41a60ddff9181e85160b83 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 817d69cb29ad6d50237abd840873cd86df2c49a5 (diff) | |
| download | llvm-50e5b3298c0c12d884d4719bc729d626680f302e.zip llvm-50e5b3298c0c12d884d4719bc729d626680f302e.tar.gz llvm-50e5b3298c0c12d884d4719bc729d626680f302e.tar.bz2 | |
Use equals_lower() rather than creating a temporary string with lower().
More important than any performance concerns, the code was dropping the
temporary string on the floor after assigning it to a StringRef, and
then used the StringRef later. Caught by running the LLD tests under
ASan.
llvm-svn: 193486
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
