aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-10-27 00:10:43 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-10-27 00:10:43 +0000
commit9204c8319dadd84ead29461ed96d8b333595374e (patch)
tree8bc06dff80b64a89f6c784ca6b75bcc41c2d4c3b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent50e5b3298c0c12d884d4719bc729d626680f302e (diff)
downloadllvm-9204c8319dadd84ead29461ed96d8b333595374e.zip
llvm-9204c8319dadd84ead29461ed96d8b333595374e.tar.gz
llvm-9204c8319dadd84ead29461ed96d8b333595374e.tar.bz2
Rather than rendering an argument to a std::string (which is primarily
intended for debugging and diagnostic output), just inspect the spelling to check for specific prefixes in drectve section flags. In addition to being significantly cheaper and not relying on a debugging interface, this also avoids creating a temporary string and binding it to StringRef variable. We then went on to access it after the memory had been deallocated. This bug too was caught by ASan. I love ASan so much. =] llvm-svn: 193487
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions