mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 00:20:11 +00:00
Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216525 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
+1
-1
@@ -692,7 +692,7 @@ static Type *DecodeFixedType(ArrayRef<Intrinsic::IITDescriptor> &Infos,
|
||||
assert(D.Struct_NumElements <= 5 && "Can't handle this yet");
|
||||
for (unsigned i = 0, e = D.Struct_NumElements; i != e; ++i)
|
||||
Elts[i] = DecodeFixedType(Infos, Tys, Context);
|
||||
return StructType::get(Context, ArrayRef<Type*>(Elts,D.Struct_NumElements));
|
||||
return StructType::get(Context, makeArrayRef(Elts,D.Struct_NumElements));
|
||||
}
|
||||
|
||||
case IITDescriptor::Argument:
|
||||
|
||||
Reference in New Issue
Block a user