From: Aaron Ballman Date: Wed, 10 Dec 2014 14:14:54 +0000 (+0000) Subject: Silencing a -Wsequence-point warning, and the resulting undefined behavior. NFC. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7e1839ff0180337b61a3a61d2608ff3f8bc16df1;p=oota-llvm.git Silencing a -Wsequence-point warning, and the resulting undefined behavior. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223926 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LiveRangeCalc.cpp b/lib/CodeGen/LiveRangeCalc.cpp index daa1ee05f6a..bc88486ce25 100644 --- a/lib/CodeGen/LiveRangeCalc.cpp +++ b/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.