summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-11-07 18:10:17 +0000
committerEric Christopher <echristo@apple.com>2011-11-07 18:10:17 +0000
commit7135457efff83960bfad420f2dc3a5b4b58e8d07 (patch)
treeba05dfbdfa9e27b2085f2984746704b8d4e2bf75 /lib
parent7d3f8b8e48854b890762ccb96f7817568541732b (diff)
downloadllvm-7135457efff83960bfad420f2dc3a5b4b58e8d07.tar.gz
llvm-7135457efff83960bfad420f2dc3a5b4b58e8d07.tar.bz2
llvm-7135457efff83960bfad420f2dc3a5b4b58e8d07.tar.xz
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')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 633f216416..d3414d7be5 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] == '-';
}