Skip to content

Commit 812c22b

Browse files
authored
[RemoveDIs][wasm] Apply current debug mode to new function protos (#84292)
This trips the verifier changes added in #83251 Stimulated by llvm/test/MC/WebAssembly/extern-functype-intrinsic.ll
1 parent a6382de commit 812c22b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ bool WebAssemblyAddMissingPrototypes::runOnModule(Module &M) {
136136
Function::Create(NewType, F.getLinkage(), F.getName() + ".fixed_sig");
137137
NewF->setAttributes(F.getAttributes());
138138
NewF->removeFnAttr("no-prototype");
139+
NewF->IsNewDbgInfoFormat = F.IsNewDbgInfoFormat;
139140
Replacements.emplace_back(&F, NewF);
140141
}
141142

0 commit comments

Comments
 (0)