[cfe-commits] r130423 - /cfe/trunk/lib/CodeGen/TargetInfo.cpp
Stuart Hastings
stuart at apple.com
Thu Apr 28 12:24:47 PDT 2011
Author: stuart
Date: Thu Apr 28 14:24:47 2011
New Revision: 130423
URL: http://llvm.org/viewvc/llvm-project?rev=130423&view=rev
Log:
Replace unitary array with scalar. rdar://problem/7662569
Modified:
cfe/trunk/lib/CodeGen/TargetInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=130423&r1=130422&r2=130423&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Thu Apr 28 14:24:47 2011
@@ -2358,9 +2358,9 @@
SizeRegs = (getContext().getTypeSize(Ty) + 63) / 64;
}
- const llvm::Type* LLVMField[1] = { llvm::ArrayType::get(ElemTy, SizeRegs) };
- const llvm::Type* STy = llvm::StructType::get(getVMContext(), LLVMField,
- true);
+ const llvm::Type *STy =
+ llvm::StructType::get(getVMContext(),
+ llvm::ArrayType::get(ElemTy, SizeRegs), NULL, NULL);
return ABIArgInfo::getDirect(STy);
}
More information about the cfe-commits
mailing list