Browse Source

cmWhileCommand: Simplify context construction

Brad King 9 years ago
parent
commit
a559f0f6b0
1 changed files with 2 additions and 6 deletions
  1. 2 6
      Source/cmWhileCommand.cxx

+ 2 - 6
Source/cmWhileCommand.cxx

@@ -55,13 +55,9 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf,
       commandContext.Line = execContext.Line;
       commandContext.Name = execContext.Name;
 
-      cmListFileContext conditionContext =
-          cmListFileContext::FromCommandContext(
-            commandContext,
-            this->GetStartingContext().FilePath);
-
       cmConditionEvaluator conditionEvaluator(
-            mf, conditionContext,
+            mf,
+            this->GetStartingContext(),
             mf.GetBacktrace(commandContext));
 
       bool isTrue = conditionEvaluator.IsTrue(