[llvm] b135df0 - [LiveDebugValues] Temporarily initialize MLocTracker::CurBB

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu May 11 19:41:04 PDT 2023


Author: Vitaly Buka
Date: 2023-05-11T19:40:46-07:00
New Revision: b135df08397c6484544fe43b64e90d6311d9f200

URL: https://github.com/llvm/llvm-project/commit/b135df08397c6484544fe43b64e90d6311d9f200
DIFF: https://github.com/llvm/llvm-project/commit/b135df08397c6484544fe43b64e90d6311d9f200.diff

LOG: [LiveDebugValues] Temporarily initialize MLocTracker::CurBB

Looks like code assumes that it will be always set, but it's not true:
https://reviews.llvm.org/D150420. This is temporarily suppression to enabled
stricter msan on a bot.

Added: 
    

Modified: 
    llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
index 772aa4079a6d8..a98cf5c56143e 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
@@ -656,7 +656,7 @@ class MLocTracker {
 
   // If we discover a new machine location, assign it an mphi with this
   // block number.
-  unsigned CurBB;
+  unsigned CurBB = 0;  // FIXME: https://reviews.llvm.org/D150420
 
   /// Cached local copy of the number of registers the target has.
   unsigned NumRegs;


        


More information about the llvm-commits mailing list