summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-21 03:15:20 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-21 03:15:20 +0000
commit2e442a00b3dc72ba32dd48787b3874a26bbdc2be (patch)
tree89e82b5491cb82726b78850793f8675d089e5e38 /clang/lib/CodeGen/CGCall.cpp
parentf6fb7e2b53752b5a9da730c11d1e9cf0c376cf52 (diff)
downloadbcm5719-llvm-2e442a00b3dc72ba32dd48787b3874a26bbdc2be.tar.gz
bcm5719-llvm-2e442a00b3dc72ba32dd48787b3874a26bbdc2be.zip
IRgen: Switch more MakeAddr() users to MakeAddrLValue; this time for calls which were previously not computing the qualifier list. In most cases, I don't think it matters, but I believe this is conservatively more correct / consistent.
llvm-svn: 111717
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 6e32e1e1b4e..4c48d631ab2 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -947,9 +947,8 @@ void CodeGenFunction::EmitFunctionProlog(const CGFunctionInfo &FI,
// we need to create a temporary and reconstruct it from the
// arguments.
llvm::Value *Temp = CreateMemTemp(Ty, Arg->getName() + ".addr");
- // FIXME: What are the right qualifiers here?
llvm::Function::arg_iterator End =
- ExpandTypeFromArgs(Ty, LValue::MakeAddr(Temp, Qualifiers()), AI);
+ ExpandTypeFromArgs(Ty, MakeAddrLValue(Temp, Ty), AI);
EmitParmDecl(*Arg, Temp);
// Name the arguments used in expansion and increment AI.
OpenPOWER on IntegriCloud