mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-23 12:11:58 +00:00
[CFLAA] Use unsigned numbers for bit-shifts.
This uses `1U` instead of `1ULL` because StratifiedAttrs is a 32-bit bitset. Thanks to Hans-Bernhard Broker for bringing this up. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273902 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9577f286d4
commit
ecb9fc51e3
@ -762,7 +762,7 @@ static Optional<StratifiedAttrs> valueToAttr(Value *Val) {
|
||||
static StratifiedAttrs argNumberToAttr(unsigned ArgNum) {
|
||||
if (ArgNum >= AttrMaxNumArgs)
|
||||
return AttrUnknown;
|
||||
return StratifiedAttrs(1 << (ArgNum + AttrFirstArgIndex));
|
||||
return StratifiedAttrs(1U << (ArgNum + AttrFirstArgIndex));
|
||||
}
|
||||
|
||||
static Level directionOfEdgeType(EdgeType Weight) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user