From 8214d7837ae01b98aa6a19ba2c1da76cd44083da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Tue, 30 May 2017 16:40:14 +0200 Subject: [PATCH] Fixed incorrect variable declaration look-up in variable stack. --- src/anthem/ASTUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anthem/ASTUtils.cpp b/src/anthem/ASTUtils.cpp index 61cb799..4ae6d4d 100644 --- a/src/anthem/ASTUtils.cpp +++ b/src/anthem/ASTUtils.cpp @@ -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 =