From b1c73532ee8997fe5dfbeb7d223027bdf99758a0 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 9 Dec 2023 14:28:42 +0100 Subject: Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1. --- llvm/lib/CodeGen/MachineFunctionPass.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineFunctionPass.cpp') diff --git a/llvm/lib/CodeGen/MachineFunctionPass.cpp b/llvm/lib/CodeGen/MachineFunctionPass.cpp index 3a1e1720be9c..d57a912f418b 100644 --- a/llvm/lib/CodeGen/MachineFunctionPass.cpp +++ b/llvm/lib/CodeGen/MachineFunctionPass.cpp @@ -88,6 +88,8 @@ bool MachineFunctionPass::runOnFunction(Function &F) { MF.print(OS); } + MFProps.reset(ClearedProperties); + bool RV = runOnMachineFunction(MF); if (ShouldEmitSizeRemarks) { @@ -114,7 +116,6 @@ bool MachineFunctionPass::runOnFunction(Function &F) { } MFProps.set(SetProperties); - MFProps.reset(ClearedProperties); // For --print-changed, print if the serialized MF has changed. Modes other // than quiet/verbose are unimplemented and treated the same as 'quiet'. -- cgit v1.3