Move EVER MORE stuff over to LLVMContext.
[oota-llvm.git] / lib / Target / CBackend / CBackend.cpp
index 6f8386e96c5ca9ee19c3fa0f0a6b2caf1509ae6c..caf91c882eeff7e4a4680e3fc80d0782b47bd84c 100644 (file)
@@ -3503,7 +3503,7 @@ void CWriter::visitStoreInst(StoreInst &I) {
     if (!ITy->isPowerOf2ByteWidth())
       // We have a bit width that doesn't match an even power-of-2 byte
       // size. Consequently we must & the value with the type's bit mask
-      BitMask = ConstantInt::get(ITy, ITy->getBitMask());
+      BitMask = Context->getConstantInt(ITy, ITy->getBitMask());
   if (BitMask)
     Out << "((";
   writeOperand(Operand);