dead code: add static const qualifier to constant sets

This commit is contained in:
2024-04-10 19:04:25 +03:00
parent ff2a1c69d8
commit aace0bf06f

View File

@@ -52,7 +52,7 @@ static void updateUseDefForInstruction(SAPFOR::BasicBlock* block, SAPFOR::Instru
if (!useful)
{
set<SAPFOR::CFG_OP> always_useful =
static const set<SAPFOR::CFG_OP> always_useful =
{
SAPFOR::CFG_OP::POINTER_ASS,
SAPFOR::CFG_OP::STORE,
@@ -456,7 +456,7 @@ void removeDeadCode(SgStatement* func,
}
// remove dead statements
set<int> removable =
static const set<int> removable =
{
ASSIGN_STAT,
PROC_STAT,
@@ -464,7 +464,7 @@ void removeDeadCode(SgStatement* func,
READ_STAT
};
set<int> skip =
static const set<int> skip =
{
PROG_HEDR,
PROC_HEDR,