mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +00:00
Fix an MSVC warning, caused by a case I missed when converting
ConstantExpr::getGetElementPtr to use ArrayRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135758 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4039313b4c
commit
8908ff207d
@ -113,7 +113,7 @@ static Instruction *InstCombineLoadCast(InstCombiner &IC, LoadInst &LI,
|
||||
Value *Idxs[2];
|
||||
Idxs[0] = Constant::getNullValue(Type::getInt32Ty(LI.getContext()));
|
||||
Idxs[1] = Idxs[0];
|
||||
CastOp = ConstantExpr::getGetElementPtr(CSrc, Idxs, 2);
|
||||
CastOp = ConstantExpr::getGetElementPtr(CSrc, Idxs);
|
||||
SrcTy = cast<PointerType>(CastOp->getType());
|
||||
SrcPTy = SrcTy->getElementType();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user