diff options
author | Nico Weber <thakis@chromium.org> | 2021-06-28 11:16:11 -0400 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2021-06-28 11:25:09 -0400 |
commit | 540b4a5fb31086b6d40735e96e6ec497022107e7 (patch) | |
tree | a9cac4e9752e02a3cdb4bd69fe0a7be40db8ac82 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 558d9e82283e6b053b18091de6e56a5e208b7036 (diff) | |
download | llvm-540b4a5fb31086b6d40735e96e6ec497022107e7.zip llvm-540b4a5fb31086b6d40735e96e6ec497022107e7.tar.gz llvm-540b4a5fb31086b6d40735e96e6ec497022107e7.tar.bz2 |
Revert "[DebugInfo] Enable variadic debug value salvaging"
This reverts commit adace79652174d126be290cab42b3122569fe15d.
Still breaks things, see comment on https://reviews.llvm.org/D91722
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 8af22af..cfbc24c 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -1748,7 +1748,11 @@ void llvm::salvageDebugInfoForDbgValues( } else if (isa<DbgValueInst>(DII) && DII->getNumVariableLocationOps() + AdditionalValues.size() <= MaxDebugArgs) { - DII->addVariableLocationOps(AdditionalValues, SalvagedExpr); + // TODO: Uncomment the line below and delete the two beneath it to enable + // salvaging of dbg.values with multiple location operands. + // DII->addVariableLocationOps(AdditionalValues, SalvagedExpr); + Value *Undef = UndefValue::get(I.getOperand(0)->getType()); + DII->replaceVariableLocationOp(I.getOperand(0), Undef); } else { // Do not salvage using DIArgList for dbg.addr/dbg.declare, as it is // currently only valid for stack value expressions. |