diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-03-18 18:30:44 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-03-18 18:30:44 +0000 |
| commit | 40f929242a58103f7883e7dbe2415787895b5cbe (patch) | |
| tree | 5fc92feef2cf7ab451b246b9acff9e95a96b5997 /lib/CodeGen/CGExpr.cpp | |
| parent | 75dfedaf702822c9e51a4f3c5d3ecf2d2ad99272 (diff) | |
| download | clang-40f929242a58103f7883e7dbe2415787895b5cbe.tar.gz clang-40f929242a58103f7883e7dbe2415787895b5cbe.tar.bz2 clang-40f929242a58103f7883e7dbe2415787895b5cbe.tar.xz | |
fix the more complex cases by actually codegen'ing the right expr :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67219 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 93b2382166..95cb53c1f7 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/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())); |
