From: Eric Christopher Date: Mon, 7 Nov 2011 18:10:17 +0000 (+0000) Subject: Allow for the case where the name of the subprogram is "". X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7135457efff83960bfad420f2dc3a5b4b58e8d07;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 633f216416e..d3414d7be55 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] == '-'; }