mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Verify that MachineMemOperand alignment is a non-zero power of 2.
llvm-svn: 53262
This commit is contained in:
parent
5b24b3baef
commit
286e8f7295
@ -246,6 +246,7 @@ MachineMemOperand::MachineMemOperand(const Value *v, unsigned int f,
|
||||
int64_t o, uint64_t s, unsigned int a)
|
||||
: Offset(o), Size(s), V(v),
|
||||
Flags((f & 7) | ((Log2_32(a) + 1) << 3)) {
|
||||
assert(isPowerOf2_32(a) && "Alignment is not a power of 2!");
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
x
Reference in New Issue
Block a user