From 6642134d90b0aaf91ce45e37c079b244ddeb299a Mon Sep 17 00:00:00 2001 From: Faisal Vali Date: Mon, 9 Dec 2013 00:15:23 +0000 Subject: [PATCH] Rename a variable that I missed in the previous refactoring. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196740 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaLambda.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Sema/SemaLambda.cpp b/lib/Sema/SemaLambda.cpp index 3983539f1a..4cf3863f7f 100644 --- a/lib/Sema/SemaLambda.cpp +++ b/lib/Sema/SemaLambda.cpp @@ -172,13 +172,13 @@ Optional clang::getStackIndexOfNearestEnclosingCaptureCapableLambda( ArrayRef FunctionScopes, VarDecl *VarToCapture, Sema &S) { - const Optional FailDistance; + const Optional NoLambdaIsCaptureCapable; const Optional OptionalStackIndex = getStackIndexOfNearestEnclosingCaptureReadyLambda(FunctionScopes, VarToCapture); if (!OptionalStackIndex) - return FailDistance; + return NoLambdaIsCaptureCapable; const unsigned IndexOfCaptureReadyLambda = OptionalStackIndex.getValue(); assert(((IndexOfCaptureReadyLambda != (FunctionScopes.size() - 1)) || @@ -206,7 +206,7 @@ Optional clang::getStackIndexOfNearestEnclosingCaptureCapableLambda( /*BuildAndDiagnose*/ false, CaptureType, DeclRefType, &IndexOfCaptureReadyLambda); if (!CanCaptureVariable) - return FailDistance; + return NoLambdaIsCaptureCapable; } else { // Check if the capture-ready lambda can truly capture 'this' by checking // whether all enclosing lambdas of the capture-ready lambda can capture @@ -217,7 +217,7 @@ Optional clang::getStackIndexOfNearestEnclosingCaptureCapableLambda( /*Explicit*/ false, /*BuildAndDiagnose*/ false, &IndexOfCaptureReadyLambda); if (!CanCaptureThis) - return FailDistance; + return NoLambdaIsCaptureCapable; } return IndexOfCaptureReadyLambda; } -- 2.40.0