diff options
Diffstat (limited to 'lib/VMCore/ConstantPool.cpp')
-rw-r--r-- | lib/VMCore/ConstantPool.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/VMCore/ConstantPool.cpp b/lib/VMCore/ConstantPool.cpp index 53428da390..092ca61ff1 100644 --- a/lib/VMCore/ConstantPool.cpp +++ b/lib/VMCore/ConstantPool.cpp @@ -217,6 +217,11 @@ ConstPoolBool::ConstPoolBool(bool V, const string &Name = "") : ConstPoolVal(Type::BoolTy, Name) { Val = V; } +ConstPoolBool::ConstPoolBool(const Type *Ty, bool V, const string &Name = "") + : ConstPoolVal(Type::BoolTy, Name) { + Val = V; + assert(Ty == Type::BoolTy && "BoolTy is only valid type for bool constant"); +} ConstPoolInt::ConstPoolInt(const Type *Ty, uint64_t V, const string &Name) : ConstPoolVal(Ty, Name) { Val.Unsigned = V; } |