summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-16 05:29:36 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-19 20:36:50 (GMT)
commit5b7ff35c4d8b41e3d08305b91b0e5973f2e3906b (patch)
tree032b9a24f96e43813f1c5e90b325cbd4f76b9ae3 /Source
parent390bc3244fd94d687bd48860eb2a70ad9674d755 (diff)
downloadCMake-5b7ff35c4d8b41e3d08305b91b0e5973f2e3906b.zip
CMake-5b7ff35c4d8b41e3d08305b91b0e5973f2e3906b.tar.gz
CMake-5b7ff35c4d8b41e3d08305b91b0e5973f2e3906b.tar.bz2
cmMakefile: Don't expect the VarStack iterator to support size().
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefile.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index e84ea4e..1a192f5 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -105,9 +105,8 @@ public:
bool RaiseScope(std::string const& var, const char* varDef, cmMakefile* mf)
{
- assert(this->VarStack.size() > 0);
-
std::list<cmDefinitions>::reverse_iterator it = this->VarStack.rbegin();
+ assert(it != this->VarStack.rend());
++it;
if(it == this->VarStack.rend())
{