diff options
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r-- | lib/CodeGen/CGCall.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index 4455f1a086..f5d7944b37 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -1875,7 +1875,8 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, if (Align > AI->getAlignment()) AI->setAlignment(Align); Args.push_back(AI); - EmitAggregateCopy(AI, Addr, I->Ty, RV.isVolatileQualified()); + EmitAggregateCopy(AI, Addr, I->Ty, RV.isVolatileQualified(), + /*destIsCompleteObject*/ true); // Validate argument match. checkArgMatches(AI, IRArgNo, IRFuncTy); |