diff options
author | Pete Cooper <peter_cooper@apple.com> | 2015-05-29 17:19:11 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2015-05-29 17:19:11 +0000 |
commit | c5a7177772222098cfeff4fead46c312bd358d96 (patch) | |
tree | 013e6a600fa603cc5c94992b2c1e68ab9be9fe57 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 376e17364f2b3d95fbdcd985cfdc157fb0292ee6 (diff) | |
download | llvm-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