aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2015-10-16 22:07:59 +0000
committerJim Grosbach <grosbach@apple.com>2015-10-16 22:07:59 +0000
commit0fdd572763a3fd1503c31ac9ac89b8bf04065040 (patch)
treef88ab7901251c441a42686bc1a797cf58a37f74e /clang/lib/Frontend/CompilerInvocation.cpp
parent7dccca543a5f29cee53e2fea8ed8abb56be90c3c (diff)
downloadllvm-0fdd572763a3fd1503c31ac9ac89b8bf04065040.zip
llvm-0fdd572763a3fd1503c31ac9ac89b8bf04065040.tar.gz
llvm-0fdd572763a3fd1503c31ac9ac89b8bf04065040.tar.bz2
MC: Don't crash after issuing a diagnostic.
Crashing is bad, m'kay? Fixing a 4 year old bug of my own creation. Adding the testcase now which I should have added then which would have long since caught this. The problem is that printMessage() will display the diagnostic but not set HadError to true, resulting in the assembler continuing on its way and trying to create relocations for things that may not allow them or otherwise get itself into trouble. Using the Error() helper function here rather than calling printMessage() directly resolves this. rdar://23133240 llvm-svn: 250557
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions