Skip to content

Commit 8927ac8

Browse files
[BOLT] Fix a warning
This patch fixes: bolt/lib/Profile/BoltAddressTranslation.cpp:380:37: error: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Werror,-Wshift-op-parentheses]
1 parent 7b9b28d commit 8927ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/lib/Profile/BoltAddressTranslation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ void BoltAddressTranslation::parseMaps(std::vector<uint64_t> &HotFuncs,
377377
PrevAddress = OutputAddress;
378378
int64_t InputDelta = 0;
379379
if (J < EqualElems) {
380-
InputOffset = (OutputOffset + ColdInputSkew << 1) | BEBitMask[J];
380+
InputOffset = ((OutputOffset + ColdInputSkew) << 1) | BEBitMask[J];
381381
} else {
382382
InputDelta = DE.getSLEB128(&Offset, &Err);
383383
InputOffset += InputDelta;

0 commit comments

Comments
 (0)