reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
535 if (!ArraySize) 536 ArraySize = ConstantInt::get(IntPtrTy, 1); 537 else if (ArraySize->getType() != IntPtrTy) { 539 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 539 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 542 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 542 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 546 if (!IsConstantOne(ArraySize)) { 548 AllocSize = ArraySize; // Operand * 1 = Operand 549 } else if (Constant *CO = dyn_cast<Constant>(ArraySize)) { 557 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, 560 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize,