summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-25 11:40:42 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-28 13:49:07 (GMT)
commit68af831505450a34ddd4bf767844bc3890eb52e5 (patch)
tree30acd56959f1bc4b36e9b69451264fc67ac73cf4 /Source/cmIfCommand.cxx
parent280f3918f3a731f64c94b2b7c912c58d714fc676 (diff)
downloadCMake-68af831505450a34ddd4bf767844bc3890eb52e5.zip
CMake-68af831505450a34ddd4bf767844bc3890eb52e5.tar.gz
CMake-68af831505450a34ddd4bf767844bc3890eb52e5.tar.bz2
cmMakefile: Inline GetExecutionContext at call sites
The method only had one line, and its implementation is more clear at the call sites than the method name.
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r--Source/cmIfCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index 5808f90..9930a85 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -179,7 +179,7 @@ bool cmIfCommand(std::vector<cmListFileArgument> const& args,
MessageType status;
cmConditionEvaluator conditionEvaluator(
- makefile, makefile.GetExecutionContext(), makefile.GetBacktrace());
+ makefile, makefile.GetBacktrace().Top(), makefile.GetBacktrace());
bool isTrue =
conditionEvaluator.IsTrue(expandedArguments, errorString, status);