r227026 - Name a bool parameter. No behavior change.

Nico Weber nicolasweber at gmx.de
Sat Jan 24 17:00:21 PST 2015


Author: nico
Date: Sat Jan 24 19:00:21 2015
New Revision: 227026

URL: http://llvm.org/viewvc/llvm-project?rev=227026&view=rev
Log:
Name a bool parameter. No behavior change.

Modified:
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=227026&r1=227025&r2=227026&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Sat Jan 24 19:00:21 2015
@@ -11568,7 +11568,8 @@ void Sema::MarkFunctionReferenced(Source
   // 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





More information about the cfe-commits mailing list