summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-as/llvm-as.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-23 20:31:39 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-23 20:31:39 +0000
commit47a309c5caec9c5d04985279656af325a96d3398 (patch)
tree309e3aba1482a8b1373f256719ffc6e97e88d37f /llvm/tools/llvm-as/llvm-as.cpp
parentccc60da5c7bef1c454b27056dfb1b003ad71807e (diff)
downloadbcm5719-llvm-47a309c5caec9c5d04985279656af325a96d3398.tar.gz
bcm5719-llvm-47a309c5caec9c5d04985279656af325a96d3398.zip
Fix off-by-one in llvm::Format::print.
- This also shortens the Format.h implementation, and uses the print buffer fully (it was wasting a character). - This manifested as llvm-test failures, because one side effect was that raw_ostream would write garbage '\x00' values into the output stream if it happened that the string was at the end of the buffer. This meant that grep would report 'Binary file matches', which meant the silly pattern matching llvm-test eventually does would fail. Cute. :) llvm-svn: 79862
Diffstat (limited to 'llvm/tools/llvm-as/llvm-as.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud