Silencing a -Wsequence-point warning, and the resulting undefined behavior. NFC.
authorAaron Ballman <aaron@aaronballman.com>
Wed, 10 Dec 2014 14:14:54 +0000 (14:14 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 10 Dec 2014 14:14:54 +0000 (14:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223926 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveRangeCalc.cpp

index daa1ee05f6a38c53e22e7a2db20dca1f95337ade..bc88486ce25d003ffaa5845ddbdc330987a5356f 100644 (file)
@@ -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.