Fixed incorrect variable declaration look-up in variable stack.
This commit is contained in:
parent
2964dd1309
commit
8214d7837a
@ -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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user