From: Eli Friedman Date: Sat, 21 Jan 2012 01:07:00 +0000 (+0000) Subject: Add obvious missing call to MarkDeclarationReferenced. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be25db97e20f72e960d87b52216b9fd9871c620b;p=clang Add obvious missing call to MarkDeclarationReferenced. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148611 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index a7910aa28e..613fb73c95 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -3724,6 +3724,7 @@ Sema::ActOnCUDAExecConfigExpr(Scope *S, SourceLocation LLLLoc, DeclRefExpr *ConfigDR = new (Context) DeclRefExpr( ConfigDecl, ConfigQTy, VK_LValue, LLLLoc); + MarkDeclarationReferenced(LLLLoc, ConfigDecl); return ActOnCallExpr(S, ConfigDR, LLLLoc, ExecConfig, GGGLoc, 0, /*IsExecConfig=*/true);