diff options
author | John McCall <rjmccall@apple.com> | 2009-12-08 09:08:17 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-12-08 09:08:17 +0000 |
commit | ce54657e956ec91a1e81596beeb44933dda03f8c (patch) | |
tree | bdc30a5b8b3f4265795fbdbd278c64b8a4741418 /clang/lib/Sema/SemaExpr.cpp | |
parent | fe2f901269a9744aaece1b6c322b86223aa2b0d6 (diff) | |
download | bcm5719-llvm-ce54657e956ec91a1e81596beeb44933dda03f8c.tar.gz bcm5719-llvm-ce54657e956ec91a1e81596beeb44933dda03f8c.zip |
DeclRefExpr stores a ValueDecl internally.
Template instantiation can re-use DeclRefExprs.
llvm-svn: 90848
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 28a826f555e..776ea71f291 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -415,7 +415,7 @@ static bool ShouldSnapshotBlockValueReference(BlockSemaInfo *CurBlock, /// BuildDeclRefExpr - Build a DeclRefExpr. Sema::OwningExprResult -Sema::BuildDeclRefExpr(NamedDecl *D, QualType Ty, SourceLocation Loc, +Sema::BuildDeclRefExpr(ValueDecl *D, QualType Ty, SourceLocation Loc, const CXXScopeSpec *SS) { if (Context.getCanonicalType(Ty) == Context.UndeducedAutoTy) { Diag(Loc, |