summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-18 18:30:44 +0000
committerChris Lattner <sabre@nondot.org>2009-03-18 18:30:44 +0000
commitab17fb2c985539582ac17540c8db09e138380495 (patch)
treeb9ff35bed5839a7b3f64082f56ddb3be2d304f84 /clang/lib/CodeGen/CGExpr.cpp
parent28bcf1a4298e581fd003b5361cbd1de25fbe44f5 (diff)
downloadbcm5719-llvm-ab17fb2c985539582ac17540c8db09e138380495.tar.gz
bcm5719-llvm-ab17fb2c985539582ac17540c8db09e138380495.zip
fix the more complex cases by actually codegen'ing the right expr :)
llvm-svn: 67219
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 93b2382166a..95cb53c1f70 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -1024,7 +1024,7 @@ LValue CodeGenFunction::EmitCastLValue(const CastExpr *E) {
// Casts are only lvalues when the source and destination types are the same.
llvm::Value *Temp = CreateTempAlloca(ConvertType(E->getType()));
- EmitAnyExpr(E, Temp, false);
+ EmitAnyExpr(E->getSubExpr(), Temp, false);
return LValue::MakeAddr(Temp, E->getType().getCVRQualifiers(),
getContext().getObjCGCAttrKind(E->getType()));
OpenPOWER on IntegriCloud