]> granicus.if.org Git - clang/commitdiff
Name a bool parameter. No behavior change.
authorNico Weber <nicolasweber@gmx.de>
Sun, 25 Jan 2015 01:00:21 +0000 (01:00 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sun, 25 Jan 2015 01:00:21 +0000 (01:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227026 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index bf6c7806c16d8b59934332ba531afae695776f12..4114b5671363c0c370458dc3d152a404c7b40a86 100644 (file)
@@ -11568,7 +11568,8 @@ void Sema::MarkFunctionReferenced(SourceLocation Loc, FunctionDecl *Func,
   // We (incorrectly) mark overload resolution as an unevaluated context, so we
   // can just check that here. Skip the rest of this function if we've already
   // marked the function as used.
-  if (Func->isUsed(false) || !IsPotentiallyEvaluatedContext(*this)) {
+  if (Func->isUsed(/*CheckUsedAttr=*/false) ||
+      !IsPotentiallyEvaluatedContext(*this)) {
     // C++11 [temp.inst]p3:
     //   Unless a function template specialization has been explicitly
     //   instantiated or explicitly specialized, the function template