Fixed incorrect variable declaration look-up in variable stack.

This commit is contained in:
Patrick Lühne 2017-05-30 16:40:14 +02:00
parent 2964dd1309
commit 8214d7837a
No known key found for this signature in database
GPG Key ID: 05F3611E97A70ABF
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ bool VariableStack::contains(const ast::VariableDeclaration &variableDeclaration
const auto variableDeclarationMatches =
[&variableDeclaration](const auto &other)
{
return variableDeclaration.name == other->name;
return &variableDeclaration == other.get();
};
const auto layerContainsVariableDeclaration =