diff options
author | Steve Naroff <snaroff@apple.com> | 2007-09-13 21:41:19 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-09-13 21:41:19 +0000 |
commit | 8e74c93ddaa8268a999e1b25c723dc1984a434b4 (patch) | |
tree | 953d578ce23989102964d2b980e4940657f5571c /CodeGen/CGExpr.cpp | |
parent | 7d6402f753916a82d93ef0bf0f703ae4243a52be (diff) |
Phase 2 of making the Decl class more lightweight...
Move Identifier/Loc instance variables (and associated getters/setters) down from Decl to ScopedDecl/FieldDecl.
Objc AST's can now inherit from Decl without getting instance variables and types that are C specific. For now, I am keeping NextDeclarator, since I believe it may be useful to ObjC. If not, it can be moved later.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41934 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CGExpr.cpp')
-rw-r--r-- | CodeGen/CGExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CodeGen/CGExpr.cpp b/CodeGen/CGExpr.cpp index 86604f94bf..64fa549a05 100644 --- a/CodeGen/CGExpr.cpp +++ b/CodeGen/CGExpr.cpp @@ -261,7 +261,7 @@ void CodeGenFunction::EmitStoreThroughOCUComponentLValue(RValue Src, LValue Dst, LValue CodeGenFunction::EmitDeclRefLValue(const DeclRefExpr *E) { - const Decl *D = E->getDecl(); + const ValueDecl *D = E->getDecl(); if (isa<BlockVarDecl>(D) || isa<ParmVarDecl>(D)) { llvm::Value *V = LocalDeclMap[D]; assert(V && "BlockVarDecl not entered in LocalDeclMap?"); |