diff --git a/CMakeLists.txt b/CMakeLists.txt index e4a884ffbd0..440bb55b1dc 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -181,7 +181,6 @@ rocm_enable_clang_tidy( -bugprone-multi-level-implicit-pointer-conversion -bugprone-signed-char-misuse -bugprone-unchecked-optional-access - -bugprone-unused-local-non-trivial-variable # Disable the aliased reserved identifiers -cert-dcl37-c -cert-dcl51-cpp diff --git a/src/module.cpp b/src/module.cpp index b3088fdb867..7e02478b385 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -1122,7 +1122,7 @@ void module::debug_print(instruction_ref ins, std::cout << "Instruction not part of module" << std::endl; return; } - std::stringstream ss; + names = this->print( [&](auto x, auto ins_names) { if(x == ins) diff --git a/src/program.cpp b/src/program.cpp index cac833803b3..b39f3936371 100644 --- a/src/program.cpp +++ b/src/program.cpp @@ -1005,7 +1005,6 @@ void program::debug_print(instruction_ref ins) const return; } - std::stringstream ss; this->print(names, [&](auto x, auto ins_names) { if(x == ins) {