summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-03-03 22:09:47 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-03-03 22:09:47 +0000
commit281aae63285d326608759dd095d64036d630d657 (patch)
tree7e22a97546bd56bfef7c50f2e0d2a7317bf8a0cd /clang/lib
parentaabec2fb8433f52a00b776c9e250fc6e2c9a7d0f (diff)
downloadbcm5719-llvm-281aae63285d326608759dd095d64036d630d657.tar.gz
bcm5719-llvm-281aae63285d326608759dd095d64036d630d657.zip
Fix code gen bug generating code for
((id)cat)->isa. Fixes radar 7709015. llvm-svn: 97672
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index db0998b4ded..7e26971414b 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/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())
OpenPOWER on IntegriCloud