summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmMakefile.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 0d48cbc..8d02092 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -280,7 +280,8 @@ cmListFileBacktrace cmMakefile::GetBacktrace() const
i = this->ContextStack.rbegin();
i != this->ContextStack.rend(); ++i)
{
- backtrace.Append(*(*i));
+ cmListFileContext frame = *(*i);
+ backtrace.Append(frame);
}
return backtrace;
}
@@ -295,7 +296,8 @@ cmMakefile::GetBacktrace(cmListFileContext const& lfc) const
i = this->ContextStack.rbegin();
i != this->ContextStack.rend(); ++i)
{
- backtrace.Append(*(*i));
+ cmListFileContext frame = *(*i);
+ backtrace.Append(frame);
}
return backtrace;
}