From 4319353e5e1edafecedd26da2aa06cf9f82239e8 Mon Sep 17 00:00:00 2001 From: starg Date: Fri, 2 Sep 2016 18:04:20 +0900 Subject: [PATCH] =?utf8?q?optional=20=E3=81=8C=E5=88=9D=E6=9C=9F=E5=8C=96?= =?utf8?q?=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA=E3=81=8B=E3=81=A3?= =?utf8?q?=E3=81=9F=E3=82=89=E4=BE=8B=E5=A4=96=E3=82=92=E6=8A=95=E3=81=92?= =?utf8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/ast2ir/phrase2ir.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ast2ir/phrase2ir.cpp b/src/ast2ir/phrase2ir.cpp index 3154552..3a3a95d 100644 --- a/src/ast2ir/phrase2ir.cpp +++ b/src/ast2ir/phrase2ir.cpp @@ -109,7 +109,7 @@ std::vector Phrase2IRCompiler::operator()(const AST::NoteS if (ast.Attributes.empty()) { - return (*this)(*ast.NoteSeq); + return (*this)(ast.NoteSeq.value()); } else { @@ -122,7 +122,7 @@ std::vector Phrase2IRCompiler::operator()(const AST::NoteS if (ast.NoteSeq.is_initialized()) { - auto events = (*this)(*ast.NoteSeq); + auto events = (*this)(ast.NoteSeq.value()); m_IR.Blocks[newIndex.ID].Events.insert(m_IR.Blocks[newIndex.ID].Events.end(), events.begin(), events.end()); } -- 2.11.0