aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2015-05-29 17:19:11 +0000
committerPete Cooper <peter_cooper@apple.com>2015-05-29 17:19:11 +0000
commitc5a7177772222098cfeff4fead46c312bd358d96 (patch)
tree013e6a600fa603cc5c94992b2c1e68ab9be9fe57 /clang/lib/Frontend/CompilerInvocation.cpp
parent376e17364f2b3d95fbdcd985cfdc157fb0292ee6 (diff)
downloadllvm-c5a7177772222098cfeff4fead46c312bd358d96.zip
llvm-c5a7177772222098cfeff4fead46c312bd358d96.tar.gz
llvm-c5a7177772222098cfeff4fead46c312bd358d96.tar.bz2
Fix crash in MCExpr::print.
Symbols are no longer required to be named, but this leads to a crash here if an unnamed symbol checks that its first character is '$'. Change the code to first check for a name, then check its first character. No test case i'm afraid as this is debugging code, but any test case with temp labels and 'llc --debug --filetype=obj' would have crashed. llvm-svn: 238579
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions