diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-02-05 18:56:49 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-05 18:56:49 +0000 |
| commit | 8848175547c525ee7f5c39a4cc5db69dac0d5aae (patch) | |
| tree | 1d360d8961445d6dd1b6a64698bf7810ef8ee7ee /clang/lib/CodeGen/CGBuiltin.cpp | |
| parent | cb86e1088aea24aa658d90092d58be50221fe782 (diff) | |
| download | bcm5719-llvm-8848175547c525ee7f5c39a4cc5db69dac0d5aae.tar.gz bcm5719-llvm-8848175547c525ee7f5c39a4cc5db69dac0d5aae.zip | |
IRgen: Fix some CreateTempAlloca calls to use ConvertTypeForMem when that is
conceptually correct. Review appreciated (Chris, Eli, Anders).
llvm-svn: 95401
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index ba574bc6cb9..4ba6a2484b6 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -657,7 +657,8 @@ RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD, // Unknown builtin, for now just dump it out and return undef. if (hasAggregateLLVMType(E->getType())) - return RValue::getAggregate(CreateTempAlloca(ConvertType(E->getType()))); + return RValue::getAggregate(CreateTempAlloca(ConvertTypeForMem( + E->getType()))); return RValue::get(llvm::UndefValue::get(ConvertType(E->getType()))); } |

