commit | 7135457efff83960bfad420f2dc3a5b4b58e8d07 | [log] [tgz] |
---|---|---|
author | Eric Christopher <echristo@apple.com> | Mon Nov 07 18:10:17 2011 +0000 |
committer | Eric Christopher <echristo@apple.com> | Mon Nov 07 18:10:17 2011 +0000 |
tree | ba05dfbdfa9e27b2085f2984746704b8d4e2bf75 | |
parent | 7d3f8b8e48854b890762ccb96f7817568541732b [diff] [blame] |
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 633f216..d3414d7 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -525,6 +525,7 @@ } static bool isObjCClass(StringRef Name) { + if (Name == "") return false; return Name[0] == '+' || Name[0] == '-'; }