From e5a2a0c9a884ef18ef1f728248aa1d103a4074ad Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 10 Dec 2014 14:14:54 +0000 Subject: [PATCH] Silencing a -Wsequence-point warning, and the resulting undefined behavior. NFC. llvm-svn: 223926 --- llvm/lib/CodeGen/LiveRangeCalc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/LiveRangeCalc.cpp b/llvm/lib/CodeGen/LiveRangeCalc.cpp index daa1ee0..bc88486 100644 --- a/llvm/lib/CodeGen/LiveRangeCalc.cpp +++ b/llvm/lib/CodeGen/LiveRangeCalc.cpp @@ -183,7 +183,7 @@ void LiveRangeCalc::extendToUses(LiveInterval &LI) { (MRI->tracksSubRegLiveness() && SubReg != 0))) { unsigned Mask = SubReg != 0 ? TRI.getSubRegIndexLaneMask(SubReg) - : Mask = MRI->getMaxLaneMaskForVReg(Reg); + : MRI->getMaxLaneMaskForVReg(Reg); // If this is the first time we see a subregister def/use. Initialize // subranges by creating a copy of the main range. -- 2.7.4