]> granicus.if.org Git - clang/commitdiff
Add obvious missing call to MarkDeclarationReferenced.
authorEli Friedman <eli.friedman@gmail.com>
Sat, 21 Jan 2012 01:07:00 +0000 (01:07 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 21 Jan 2012 01:07:00 +0000 (01:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148611 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index a7910aa28e2f173c16729f87db68936563272528..613fb73c9524d72d7b40a9abfaed53841b12dc1a 100644 (file)
@@ -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);