| Index: src/IceOperand.h
|
| diff --git a/src/IceOperand.h b/src/IceOperand.h
|
| index 7398f73a754670a1a2d0cacd536996dd906e58d5..67ff09fef9bd1ee934910378b42346112cf5546d 100644
|
| --- a/src/IceOperand.h
|
| +++ b/src/IceOperand.h
|
| @@ -166,8 +166,6 @@ public:
|
|
|
| static ConstantPrimitive *create(GlobalContext *Ctx, Type Ty,
|
| PrimType Value) {
|
| - assert(!Ctx->isIRGenerationDisabled() &&
|
| - "Attempt to build primitive constant when IR generation disabled");
|
| return new (Ctx->allocate<ConstantPrimitive>())
|
| ConstantPrimitive(Ty, Value);
|
| }
|
| @@ -279,8 +277,6 @@ class ConstantRelocatable : public Constant {
|
| public:
|
| static ConstantRelocatable *create(GlobalContext *Ctx, Type Ty,
|
| const RelocatableTuple &Tuple) {
|
| - assert(!Ctx->isIRGenerationDisabled() &&
|
| - "Attempt to build relocatable constant when IR generation disabled");
|
| return new (Ctx->allocate<ConstantRelocatable>()) ConstantRelocatable(
|
| Ty, Tuple.Offset, Tuple.Name, Tuple.SuppressMangling);
|
| }
|
| @@ -320,8 +316,6 @@ class ConstantUndef : public Constant {
|
|
|
| public:
|
| static ConstantUndef *create(GlobalContext *Ctx, Type Ty) {
|
| - assert(!Ctx->isIRGenerationDisabled() &&
|
| - "Attempt to build undefined constant when IR generation disabled");
|
| return new (Ctx->allocate<ConstantUndef>()) ConstantUndef(Ty);
|
| }
|
|
|
|
|