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); }