[cfe-commits] r63681 - /cfe/trunk/lib/CodeGen/CGCall.cpp

Daniel Dunbar daniel at zuster.org
Tue Feb 3 15:04:57 PST 2009


Author: ddunbar
Date: Tue Feb  3 17:04:57 2009
New Revision: 63681

URL: http://llvm.org/viewvc/llvm-project?rev=63681&view=rev
Log:
Use ConvertTypeForMem when creating alloca for scalar argument.

Modified:
    cfe/trunk/lib/CodeGen/CGCall.cpp

Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=63681&r1=63680&r2=63681&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Tue Feb  3 17:04:57 2009
@@ -1337,7 +1337,7 @@
       // 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");





More information about the cfe-commits mailing list