diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-11 22:25:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-11 22:25:55 +0000 |
commit | e9fcadd2a6e68fcdc00129423d463c7d8a80617b (patch) | |
tree | ffdb21ab0702ee869b6a390d12bd75fdc970ca9d /clang/lib/CodeGen/CGExprComplex.cpp | |
parent | cd4a301a1a1c7a961560fb64c60c48bc7ea6498f (diff) | |
download | bcm5719-llvm-e9fcadd2a6e68fcdc00129423d463c7d8a80617b.tar.gz bcm5719-llvm-e9fcadd2a6e68fcdc00129423d463c7d8a80617b.zip |
Use EmitVAListRef instead of EmitLValue directly to handle array decay
case on x86_64.
llvm-svn: 64333
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprComplex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp index 89a206dfb10..ebf35948ff8 100644 --- a/clang/lib/CodeGen/CGExprComplex.cpp +++ b/clang/lib/CodeGen/CGExprComplex.cpp @@ -531,7 +531,7 @@ ComplexPairTy ComplexExprEmitter::VisitInitListExpr(InitListExpr *E) { } ComplexPairTy ComplexExprEmitter::VisitVAArgExpr(VAArgExpr *E) { - llvm::Value *ArgValue = CGF.EmitLValue(E->getSubExpr()).getAddress(); + llvm::Value *ArgValue = CGF.EmitVAListRef(E->getSubExpr()); llvm::Value *ArgPtr = CGF.EmitVAArg(ArgValue, E->getType()); if (!ArgPtr) { |