diff options
Diffstat (limited to 'include/llvm/CodeGen/MachineConstantPool.h')
-rw-r--r-- | include/llvm/CodeGen/MachineConstantPool.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineConstantPool.h b/include/llvm/CodeGen/MachineConstantPool.h index 0d12984ad6..2ac6e148b3 100644 --- a/include/llvm/CodeGen/MachineConstantPool.h +++ b/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. |