Skip to content

Commit 6b8fb81

Browse files
committed
Dont emit noreturn flags for pdb
no return are inserted with unreachable directives which follow assembly blocks. This confuses decompilers.
1 parent fb588f3 commit 6b8fb81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,8 +1132,8 @@ void CodeViewDebug::emitDebugInfoForFunction(const Function *GV,
11321132
ProcSymFlags ProcFlags = ProcSymFlags::HasOptimizedDebugInfo;
11331133
if (FI.HasFramePointer)
11341134
ProcFlags |= ProcSymFlags::HasFP;
1135-
if (GV->hasFnAttribute(Attribute::NoReturn))
1136-
ProcFlags |= ProcSymFlags::IsNoReturn;
1135+
// if (GV->hasFnAttribute(Attribute::NoReturn))
1136+
// ProcFlags |= ProcSymFlags::IsNoReturn;
11371137
if (GV->hasFnAttribute(Attribute::NoInline))
11381138
ProcFlags |= ProcSymFlags::IsNoInline;
11391139
OS.emitInt8(static_cast<uint8_t>(ProcFlags));

0 commit comments

Comments
 (0)