diff options
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index a97eb9f..a6f1fbc 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -3362,7 +3362,7 @@ void CodeViewDebug::emitDebugInfoForGlobal(const CVGlobalVariable &CVGV) { // in its name so that we can reference the variable in the command line // of the VS debugger. std::string QualifiedName = - (moduleIsInFortran() || isa<DILocalScope>(Scope)) + (moduleIsInFortran() || (Scope && isa<DILocalScope>(Scope))) ? std::string(DIGV->getName()) : getFullyQualifiedName(Scope, DIGV->getName()); |