diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-03-03 22:09:47 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-03-03 22:09:47 +0000 |
commit | 9f9efe6d58f49bce01b548bf81245f053b632a02 (patch) | |
tree | a8a966a7c376b71c65570a2441b016036d3bc16e /lib/CodeGen/CGExprScalar.cpp | |
parent | eeeb49a69a35aba5b09021ffb4550a840af54053 (diff) |
Fix code gen bug generating code for
((id)cat)->isa. Fixes radar 7709015.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index db0998b4de..7e26971414 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -1888,6 +1888,8 @@ LValue CodeGenFunction::EmitObjCIsaExpr(const ObjCIsaExpr *E) { V = CreateTempAlloca(ClassPtrTy, "resval"); llvm::Value *Src = EmitScalarExpr(BaseExpr); Builder.CreateStore(Src, V); + LValue LV = LValue::MakeAddr(V, MakeQualifiers(E->getType())); + V = ScalarExprEmitter(*this).EmitLoadOfLValue(LV, E->getType()); } else { if (E->isArrow()) |