summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-16 15:56:42 +0000
committerDan Gohman <gohman@apple.com>2008-07-16 15:56:42 +0000
commitbf98f682656888126a13b49fc8e92f3643a77eb0 (patch)
treeebaf1cc74b5cc40ce40299b64223b740f123e4cc /llvm/lib/CodeGen/MachineInstr.cpp
parentce2dca186bdfa2e495b753827318195f60cb9447 (diff)
downloadbcm5719-llvm-bf98f682656888126a13b49fc8e92f3643a77eb0.tar.gz
bcm5719-llvm-bf98f682656888126a13b49fc8e92f3643a77eb0.zip
Add an assert to check for empty flags for MachineMemOperand.
llvm-svn: 53680
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 36212ba4d06..595a9149b38 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -246,6 +246,7 @@ MachineMemOperand::MachineMemOperand(const Value *v, unsigned int f,
: 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!");
+ assert((isLoad() || isStore()) && "Not a load/store!");
}
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud