diff options
author | Eric Christopher <echristo@apple.com> | 2011-11-07 18:10:17 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-11-07 18:10:17 +0000 |
commit | 7135457efff83960bfad420f2dc3a5b4b58e8d07 (patch) | |
tree | ba05dfbdfa9e27b2085f2984746704b8d4e2bf75 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 7d3f8b8e48854b890762ccb96f7817568541732b (diff) | |
download | external_llvm-7135457efff83960bfad420f2dc3a5b4b58e8d07.zip external_llvm-7135457efff83960bfad420f2dc3a5b4b58e8d07.tar.gz external_llvm-7135457efff83960bfad420f2dc3a5b4b58e8d07.tar.bz2 |
Allow for the case where the name of the subprogram is "".
Fixes a self-host error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143970 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 633f216..d3414d7 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -525,6 +525,7 @@ CompileUnit *DwarfDebug::constructCompileUnit(const MDNode *N) { } static bool isObjCClass(StringRef Name) { + if (Name == "") return false; return Name[0] == '+' || Name[0] == '-'; } |