mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Make better use of ConstantExpr::getGetElementPtr's InBounds parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135676 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1352,10 +1352,9 @@ bool BitcodeReader::ParseConstants() {
|
||||
Elts.push_back(ValueList.getConstantFwdRef(Record[i+1], ElTy));
|
||||
}
|
||||
ArrayRef<Constant *> Indices(Elts.begin() + 1, Elts.end());
|
||||
if (BitCode == bitc::CST_CODE_CE_INBOUNDS_GEP)
|
||||
V = ConstantExpr::getInBoundsGetElementPtr(Elts[0], Indices);
|
||||
else
|
||||
V = ConstantExpr::getGetElementPtr(Elts[0], Indices);
|
||||
V = ConstantExpr::getGetElementPtr(Elts[0], Indices,
|
||||
BitCode ==
|
||||
bitc::CST_CODE_CE_INBOUNDS_GEP);
|
||||
break;
|
||||
}
|
||||
case bitc::CST_CODE_CE_SELECT: // CE_SELECT: [opval#, opval#, opval#]
|
||||
|
Reference in New Issue
Block a user