[llvm] 7f8488e - Fix operator precedence warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 9 09:05:24 PST 2019
Author: Simon Pilgrim
Date: 2019-11-09T17:03:21Z
New Revision: 7f8488eeb4a7f41d6ccad63e18f87266f64110c1
URL: https://github.com/llvm/llvm-project/commit/7f8488eeb4a7f41d6ccad63e18f87266f64110c1
DIFF: https://github.com/llvm/llvm-project/commit/7f8488eeb4a7f41d6ccad63e18f87266f64110c1.diff
LOG: Fix operator precedence warning. NFC.
Added:
Modified:
llvm/lib/CodeGen/StackMaps.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/StackMaps.cpp b/llvm/lib/CodeGen/StackMaps.cpp
index 383c91259ffc..23a3cb7cc7f9 100644
--- a/llvm/lib/CodeGen/StackMaps.cpp
+++ b/llvm/lib/CodeGen/StackMaps.cpp
@@ -260,7 +260,7 @@ StackMaps::parseRegisterLiveOutMask(const uint32_t *Mask) const {
// Create a LiveOutReg for each bit that is set in the register mask.
for (unsigned Reg = 0, NumRegs = TRI->getNumRegs(); Reg != NumRegs; ++Reg)
- if ((Mask[Reg / 32] >> Reg % 32) & 1)
+ if ((Mask[Reg / 32] >> (Reg % 32)) & 1)
LiveOuts.push_back(createLiveOutReg(Reg, TRI));
// We don't need to keep track of a register if its super-register is already
More information about the llvm-commits
mailing list