[llvm] r223926 - Silencing a -Wsequence-point warning, and the resulting undefined behavior. NFC.
Aaron Ballman
aaron at aaronballman.com
Wed Dec 10 06:14:55 PST 2014
Author: aaronballman
Date: Wed Dec 10 08:14:54 2014
New Revision: 223926
URL: http://llvm.org/viewvc/llvm-project?rev=223926&view=rev
Log:
Silencing a -Wsequence-point warning, and the resulting undefined behavior. NFC.
Modified:
llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp
Modified: llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp?rev=223926&r1=223925&r2=223926&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp Wed Dec 10 08:14:54 2014
@@ -183,7 +183,7 @@ void LiveRangeCalc::extendToUses(LiveInt
(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.
More information about the llvm-commits
mailing list