diff options
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 0535a667bc1..8967ffbfc9b 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -1337,7 +1337,7 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, // FIXME: Avoid the conversion through memory if possible. llvm::Value *SrcPtr; if (RV.isScalar()) { - SrcPtr = CreateTempAlloca(ConvertType(I->second), "coerce"); + SrcPtr = CreateTempAlloca(ConvertTypeForMem(I->second), "coerce"); Builder.CreateStore(RV.getScalarVal(), SrcPtr); } else if (RV.isComplex()) { SrcPtr = CreateTempAlloca(ConvertType(I->second), "coerce"); |