From: Chris Lattner Date: Thu, 9 Feb 2006 02:25:42 +0000 (+0000) Subject: Assert invariants X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e7a1e2152cf5dadf98bf78f9b0337213271b8786;p=oota-llvm.git Assert invariants git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26073 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineConstantPool.h b/include/llvm/CodeGen/MachineConstantPool.h index 0d12984ad6f..2ac6e148b34 100644 --- a/include/llvm/CodeGen/MachineConstantPool.h +++ b/include/llvm/CodeGen/MachineConstantPool.h @@ -24,6 +24,7 @@ #include #include +#include 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.