[llvm] [RemoveDIs][wasm] Apply current debug mode to new function protos (PR #84292)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 7 01:24:22 PST 2024
https://github.com/OCHyams created https://github.com/llvm/llvm-project/pull/84292
This trips the verifier changes added in #83251
>From a828f4a29872454668711a388eb466461e50bc6f Mon Sep 17 00:00:00 2001
From: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
Date: Thu, 7 Mar 2024 09:21:37 +0000
Subject: [PATCH] [RemoveDIs][wasm] Apply current debug mode to new function
protos
This trips the verifier changes added in #83251
---
llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
index 90e81991284710..abcb1d0f16286e 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
@@ -136,6 +136,7 @@ bool WebAssemblyAddMissingPrototypes::runOnModule(Module &M) {
Function::Create(NewType, F.getLinkage(), F.getName() + ".fixed_sig");
NewF->setAttributes(F.getAttributes());
NewF->removeFnAttr("no-prototype");
+ NewF->IsNewDbgInfoFormat = F.IsNewDbgInfoFormat;
Replacements.emplace_back(&F, NewF);
}
More information about the llvm-commits
mailing list