From 139d5007613696147437159a7f0d0cdcac702529 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 28 Apr 2022 20:16:47 +0200 Subject: Vendor import of llvm-project branch release/14.x llvmorg-14.0.2-0-g0e27d08cdeb3. --- llvm/lib/CodeGen/MachineFunction.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'llvm/lib/CodeGen/MachineFunction.cpp') diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index fd5ea5cad072..02f58ca5eef0 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -1181,9 +1181,6 @@ void MachineFunction::finalizeDebugInstrRefs() { MI.getOperand(1).ChangeToRegister(0, false); }; - if (!useDebugInstrRef()) - return; - for (auto &MBB : *this) { for (auto &MI : MBB) { if (!MI.isDebugRef() || !MI.getOperand(0).isReg()) -- cgit v1.3