From 796b286cba529bbe93177817bde3db7f9f57b8b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Wei=C3=9F?= <leon.weiss@rub.de> Date: Mon, 23 Oct 2023 08:19:12 +0200 Subject: [PATCH] Fix clang-tidy warnings --- irdb-libs/ir_builders/fill_in_indtargs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irdb-libs/ir_builders/fill_in_indtargs.cpp b/irdb-libs/ir_builders/fill_in_indtargs.cpp index 9ca7a323b..a80f436d8 100644 --- a/irdb-libs/ir_builders/fill_in_indtargs.cpp +++ b/irdb-libs/ir_builders/fill_in_indtargs.cpp @@ -2534,7 +2534,7 @@ V2: found_leas.insert(I5); // if we didn't find anything yet, .... - if (found_leas.size() == 0 && I6->getFunction()) + if (found_leas.empty() && I6->getFunction()) { cout << "Using find_in_function method." << endl; const auto tmp_found_leas = find_in_function("lea ", I6->getFunction()); @@ -2950,7 +2950,7 @@ V2: table_entry_size == 1 ? VirtualOffset_t(*reinterpret_cast<const int8_t *>(table_entry_ptr)) : table_entry_size == 2 ? VirtualOffset_t(*reinterpret_cast<const int16_t *>(table_entry_ptr)) : table_entry_size == 4 ? VirtualOffset_t(*reinterpret_cast<const int32_t *>(table_entry_ptr)) : table_entry_size == 8 ? VirtualOffset_t(*reinterpret_cast<const int64_t *>(table_entry_ptr)) - : throw new invalid_argument("Cannot detect displacement size to load value "); + : throw invalid_argument("Cannot detect displacement size to load value "); const auto table_entry = raw_table_entry * table_entry_multiplier; if (!possible_target(D1 + table_entry, 0 /* from addr unknown */, switch_prov)) -- GitLab