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
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

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