diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-09 02:25:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-09 02:25:42 +0000 |
commit | 0ece4214ad278ffba3db23ae24554bafedee60b4 (patch) | |
tree | 3595375e3d2ba39ba6335d6d4b3cac0c80d6b5d7 | |
parent | c360656c1dc0d10d1d3360023628c13d67aadef0 (diff) | |
download | bcm5719-llvm-0ece4214ad278ffba3db23ae24554bafedee60b4.tar.gz bcm5719-llvm-0ece4214ad278ffba3db23ae24554bafedee60b4.zip |
Assert invariants
llvm-svn: 26073
-rw-r--r-- | llvm/include/llvm/CodeGen/MachineConstantPool.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineConstantPool.h b/llvm/include/llvm/CodeGen/MachineConstantPool.h index 0d12984ad6f..2ac6e148b34 100644 --- a/llvm/include/llvm/CodeGen/MachineConstantPool.h +++ b/llvm/include/llvm/CodeGen/MachineConstantPool.h @@ -24,6 +24,7 @@ #include <vector> #include <iosfwd> +#include <cassert> namespace llvm { @@ -37,6 +38,8 @@ public: /// an existing one. User must specify an alignment in bytes for the object. /// unsigned getConstantPoolIndex(Constant *C, unsigned Alignment) { + assert(Alignment && "Alignment must be specified!"); + // Check to see if we already have this constant. // // FIXME, this could be made much more efficient for large constant pools. |