From b251cc0d91362ea44f00a0138998a0272791f7dc Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 12 Jul 2019 14:58:15 +0000 Subject: Delete dead stores llvm-svn: 365903 --- llvm/lib/CodeGen/LiveDebugVariables.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp') diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index 4256edeedd3b..656ec7d4bdfd 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -740,10 +740,8 @@ void UserValue::extendDef(SlotIndex Idx, DbgValueLocation Loc, LiveRange *LR, } // Limited by the next def. - if (I.valid() && I.start() < Stop) { + if (I.valid() && I.start() < Stop) Stop = I.start(); - ToEnd = false; - } // Limited by VNI's live range. else if (!ToEnd && Kills) Kills->push_back(Stop); -- cgit v1.2.3