|
@@ -504,7 +504,8 @@ static void printExtendedName(raw_ostream &OS, const DINode *Node,
|
|
|
|
|
|
if (!Res.empty())
|
|
|
OS << Res << "," << Line;
|
|
|
- if (auto *InlinedAt = DL->getInlinedAt()) {
|
|
|
+ auto *InlinedAt = DL ? DL->getInlinedAt() : nullptr;
|
|
|
+ if (InlinedAt) {
|
|
|
if (DebugLoc InlinedAtDL = InlinedAt) {
|
|
|
OS << " @[";
|
|
|
printDebugLoc(InlinedAtDL, OS, Ctx);
|