summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtSerialization.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-10-21 16:13:35 +0000
committerDouglas Gregor <dgregor@apple.com>2008-10-21 16:13:35 +0000
commit5251f1b28324a1af9812b5234eeafa904f42706c (patch)
treea07a945501d2a4f68bd1e0e36321000c4c6beb9b /clang/lib/AST/StmtSerialization.cpp
parent0747e7e025b3b07f2582739d5df0a5648b05fd5b (diff)
downloadbcm5719-llvm-5251f1b28324a1af9812b5234eeafa904f42706c.tar.gz
bcm5719-llvm-5251f1b28324a1af9812b5234eeafa904f42706c.zip
Preliminary support for function overloading
llvm-svn: 57909
Diffstat (limited to 'clang/lib/AST/StmtSerialization.cpp')
-rw-r--r--clang/lib/AST/StmtSerialization.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/StmtSerialization.cpp b/clang/lib/AST/StmtSerialization.cpp
index baee0301449..decd9a76c9b 100644
--- a/clang/lib/AST/StmtSerialization.cpp
+++ b/clang/lib/AST/StmtSerialization.cpp
@@ -522,12 +522,12 @@ DeclRefExpr* DeclRefExpr::CreateImpl(Deserializer& D, ASTContext& C) {
SourceLocation Loc = SourceLocation::ReadVal(D);
QualType T = QualType::ReadVal(D);
bool OwnsDecl = D.ReadBool();
- ValueDecl* decl;
+ NamedDecl* decl;
if (!OwnsDecl)
D.ReadPtr(decl,false); // No backpatching.
else
- decl = cast<ValueDecl>(D.ReadOwnedPtr<Decl>(C));
+ decl = cast<NamedDecl>(D.ReadOwnedPtr<Decl>(C));
return new DeclRefExpr(decl,T,Loc);
}
OpenPOWER on IntegriCloud