mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Add an assert to check for empty flags for MachineMemOperand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53680 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
836b3e63bd
commit
c5e1f98fdf
@ -246,6 +246,7 @@ MachineMemOperand::MachineMemOperand(const Value *v, unsigned int f,
|
|||||||
: Offset(o), Size(s), V(v),
|
: Offset(o), Size(s), V(v),
|
||||||
Flags((f & 7) | ((Log2_32(a) + 1) << 3)) {
|
Flags((f & 7) | ((Log2_32(a) + 1) << 3)) {
|
||||||
assert(isPowerOf2_32(a) && "Alignment is not a power of 2!");
|
assert(isPowerOf2_32(a) && "Alignment is not a power of 2!");
|
||||||
|
assert((isLoad() || isStore()) && "Not a load/store!");
|
||||||
}
|
}
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user