summaryrefslogtreecommitdiff
path: root/Source/cmWhileCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-25 09:17:22 -0400
committerBrad King <brad.king@kitware.com>2020-09-28 09:49:08 -0400
commite456dae6693dc3a79e2708481a969b43cda188cf (patch)
treed4bb0f716d018dff91eeee9bc73b4dcfb54cbcc8 /Source/cmWhileCommand.cxx
parent0100a4943eb862409ad0cf9619eca93e170dea4a (diff)
downloadcmake-e456dae6693dc3a79e2708481a969b43cda188cf.tar.gz
cmConditionEvaluator: Remove extra copy of execution context
The execution context passed to the constructor always matches the top of the backtrace, so the former can be removed in favor of using only the latter.
Diffstat (limited to 'Source/cmWhileCommand.cxx')
-rw-r--r--Source/cmWhileCommand.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmWhileCommand.cxx b/Source/cmWhileCommand.cxx
index 876ce20bcf..2c7a8a7883 100644
--- a/Source/cmWhileCommand.cxx
+++ b/Source/cmWhileCommand.cxx
@@ -69,8 +69,7 @@ bool cmWhileFunctionBlocker::Replay(std::vector<cmListFileFunction> functions,
cmListFileBacktrace whileBT =
mf.GetBacktrace().Push(this->GetStartingContext());
- cmConditionEvaluator conditionEvaluator(mf, this->GetStartingContext(),
- whileBT);
+ cmConditionEvaluator conditionEvaluator(mf, whileBT);
bool isTrue =
conditionEvaluator.IsTrue(expandedArguments, errorString, messageType);