From b8f429256fa77d28f8e79a00879b6f5f93bb00d1 Mon Sep 17 00:00:00 2001 From: ALEXks Date: Sun, 29 Jun 2025 16:02:37 +0300 Subject: [PATCH] added removedUnreachableBlocks call for buildCFG --- src/CFGraph/CFGraph.cpp | 3 +++ src/Utils/version.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CFGraph/CFGraph.cpp b/src/CFGraph/CFGraph.cpp index c9ea091..c6290ce 100644 --- a/src/CFGraph/CFGraph.cpp +++ b/src/CFGraph/CFGraph.cpp @@ -1162,6 +1162,9 @@ map> buildCFG(const map& common if (SgFile::switchToFile(oldFile) == -1) printInternalError(convertFileName(__FILE__).c_str(), __LINE__); + for (auto& [func, blocks] : result) + removedUnreachableBlocks(blocks); + return result; } diff --git a/src/Utils/version.h b/src/Utils/version.h index eb41217..96e4210 100644 --- a/src/Utils/version.h +++ b/src/Utils/version.h @@ -1,3 +1,3 @@ #pragma once -#define VERSION_SPF "2431" +#define VERSION_SPF "2432"