summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-11 22:25:55 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-11 22:25:55 +0000
commite9fcadd2a6e68fcdc00129423d463c7d8a80617b (patch)
treeffdb21ab0702ee869b6a390d12bd75fdc970ca9d /clang/lib/CodeGen/CGExprComplex.cpp
parentcd4a301a1a1c7a961560fb64c60c48bc7ea6498f (diff)
downloadbcm5719-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.cpp2
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) {
OpenPOWER on IntegriCloud