mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Migrate LLVM and Clang to use the new makeArrayRef(...) functions where previously explicit non-default constructors were used.
Mostly mechanical with some manual reformatting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135390 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -3559,7 +3559,7 @@ void CWriter::visitInsertValueInst(InsertValueInst &IVI) {
|
||||
i != e; ++i) {
|
||||
Type *IndexedTy =
|
||||
ExtractValueInst::getIndexedType(IVI.getOperand(0)->getType(),
|
||||
ArrayRef<unsigned>(b, i+1));
|
||||
makeArrayRef(b, i+1));
|
||||
if (IndexedTy->isArrayTy())
|
||||
Out << ".array[" << *i << "]";
|
||||
else
|
||||
@ -3581,7 +3581,7 @@ void CWriter::visitExtractValueInst(ExtractValueInst &EVI) {
|
||||
i != e; ++i) {
|
||||
Type *IndexedTy =
|
||||
ExtractValueInst::getIndexedType(EVI.getOperand(0)->getType(),
|
||||
ArrayRef<unsigned>(b, i+1));
|
||||
makeArrayRef(b, i+1));
|
||||
if (IndexedTy->isArrayTy())
|
||||
Out << ".array[" << *i << "]";
|
||||
else
|
||||
|
Reference in New Issue
Block a user