From 4c9570e063bfe1d302adc39a611bde40d7651216 Mon Sep 17 00:00:00 2001 From: dmed256 Date: Sat, 21 Jul 2018 14:11:27 -0500 Subject: [PATCH] [Parser] Fixed switch condition free bug --- src/lang/statement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lang/statement.cpp b/src/lang/statement.cpp index 8a9f2de2e..12236a0fd 100644 --- a/src/lang/statement.cpp +++ b/src/lang/statement.cpp @@ -802,7 +802,7 @@ namespace occa { switchStatement::switchStatement(blockStatement *up_, const switchStatement& other) : blockStatement(up_, other.source), - condition(other.condition) { + condition(&(other.condition->clone(this))) { copyFrom(other); }