aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2020-02-05 15:19:00 +0000
committerJeremy Morse <jeremy.morse@sony.com>2020-02-06 14:41:39 +0000
commited5998d21e4bdffe4baae918bc9065ae8435c49c (patch)
tree7029423e82930e007a001e69ebebe73b48568796 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parentd6da8a1d945361327b8da79195dbfccc2e533e87 (diff)
downloadllvm-ed5998d21e4bdffe4baae918bc9065ae8435c49c.zip
llvm-ed5998d21e4bdffe4baae918bc9065ae8435c49c.tar.gz
llvm-ed5998d21e4bdffe4baae918bc9065ae8435c49c.tar.bz2
Revert "[SafeStack][DebugInfo] Insert DW_OP_deref in correct location"
This reverts commit 2d3174c4df6b5f4131346828d0a31675d80d6e2b. The overall solution for this problem is reverting D68945, which wasn't handling the -O0 path through the codegen backend correctly. See: discussion in D73526.
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugVariables.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp
index effdfe5..0bd0c27 100644
--- a/llvm/lib/CodeGen/LiveDebugVariables.cpp
+++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp
@@ -650,8 +650,8 @@ bool LDVImpl::handleDebugValue(MachineInstr &MI, SlotIndex Idx) {
}
// Get or create the UserValue for (variable,offset) here.
- assert((!MI.getOperand(1).isImm() || MI.getOperand(1).getImm() == 0) &&
- "DBG_VALUE with nonzero offset");
+ assert(!MI.getOperand(1).isImm() && "DBG_VALUE with indirect flag before "
+ "LiveDebugVariables");
const DILocalVariable *Var = MI.getDebugVariable();
const DIExpression *Expr = MI.getDebugExpression();
UserValue *UV =