diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h --- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h +++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h @@ -656,7 +656,7 @@ // If we discover a new machine location, assign it an mphi with this // block number. - unsigned CurBB = 0; // FIXME: https://reviews.llvm.org/D150420 + unsigned CurBB = -1; /// Cached local copy of the number of registers the target has. unsigned NumRegs; @@ -1094,7 +1094,7 @@ MLocTracker *MTracker = nullptr; /// Number of the current block LiveDebugValues is stepping through. - unsigned CurBB; + unsigned CurBB = -1; /// Number of the current instruction LiveDebugValues is evaluating. unsigned CurInst;