From d5172668f231ca697cff83ee3811fb17151b8c3c Mon Sep 17 00:00:00 2001 From: Wen HU Date: Sun, 28 Feb 2021 20:29:20 -0500 Subject: [PATCH] fix build with clang v10 --- src/mplfe/common/src/feir_stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mplfe/common/src/feir_stmt.cpp b/src/mplfe/common/src/feir_stmt.cpp index d0c0596c85..6dbe555d66 100644 --- a/src/mplfe/common/src/feir_stmt.cpp +++ b/src/mplfe/common/src/feir_stmt.cpp @@ -855,7 +855,7 @@ FEIRStmtSwitch2::~FEIRStmtSwitch2() { std::list FEIRStmtSwitch2::GenMIRStmtsImpl(MIRBuilder &mirBuilder) const { std::list ans; CaseVector switchTable(mirBuilder.GetCurrentFuncCodeMpAllocator()->Adapter()); - for (const std::pair &valueLabelPair : mapValueLabelIdx) { + for (const std::pair &valueLabelPair : mapValueLabelIdx) { switchTable.emplace_back(valueLabelPair.first, FEIRStmtPesudoLabel2::GenMirLabelIdx(mirBuilder, outerIdx, valueLabelPair.second)); } -- Gitee