cmMakefile: Don't expect the VarStack iterator to support size().

This commit is contained in:
Stephen Kelly 2015-05-16 07:29:36 +02:00
parent 390bc3244f
commit 5b7ff35c4d
1 changed files with 1 additions and 2 deletions

View File

@ -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())
{