diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-07-22 07:54:01 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-07-22 07:54:01 +0000 |
commit | 71f19ac6af715aa6f2b5377b887b89ef0ab30d98 (patch) | |
tree | 7121c5641859c86505bd523a973b9c8c1f7ec8ae | |
parent | 2d71c421f9505c6725080d4790eddbd852b49f0d (diff) | |
download | bcm5719-llvm-71f19ac6af715aa6f2b5377b887b89ef0ab30d98.tar.gz bcm5719-llvm-71f19ac6af715aa6f2b5377b887b89ef0ab30d98.zip |
Fix an MSVC warning, caused by a case I missed when converting
ConstantExpr::getGetElementPtr to use ArrayRef.
llvm-svn: 135758
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp b/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp index bdd2edb991c..3c1e000df15 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp @@ -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(); } |