mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
Convert InsertValueInst and ExtractValueInst APIs to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135040 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -278,8 +278,7 @@ FoldCmpLoadFromIndexedGlobal(GetElementPtrInst *GEP, GlobalVariable *GV,
|
||||
|
||||
// If this is indexing an array of structures, get the structure element.
|
||||
if (!LaterIndices.empty())
|
||||
Elt = ConstantExpr::getExtractValue(Elt, LaterIndices.data(),
|
||||
LaterIndices.size());
|
||||
Elt = ConstantExpr::getExtractValue(Elt, LaterIndices);
|
||||
|
||||
// If the element is masked, handle it.
|
||||
if (AndCst) Elt = ConstantExpr::getAnd(Elt, AndCst);
|
||||
|
||||
Reference in New Issue
Block a user