summaryrefslogtreecommitdiffstats
path: root/Source/cmCMakeLanguageCommand.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/cmCMakeLanguageCommand.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/cmCMakeLanguageCommand.cxx')
-rw-r--r--Source/cmCMakeLanguageCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCMakeLanguageCommand.cxx b/Source/cmCMakeLanguageCommand.cxx
index eb9269f..d513611 100644
--- a/Source/cmCMakeLanguageCommand.cxx
+++ b/Source/cmCMakeLanguageCommand.cxx
@@ -39,7 +39,7 @@ bool cmCMakeLanguageCommand(std::vector<cmListFileArgument> const& args,
}
cmMakefile& makefile = status.GetMakefile();
- cmListFileContext context = makefile.GetExecutionContext();
+ cmListFileContext context = makefile.GetBacktrace().Top();
bool result = false;