Fix clang-tidy performance-unnecessary-copy-initialization warnings

This commit is contained in:
Tim Wojtulewicz 2025-04-25 16:34:11 -07:00
parent 909413838c
commit cb8c35748a
15 changed files with 26 additions and 28 deletions

View file

@ -471,7 +471,7 @@ bool Reducer::ExprValid(const ID* id, const Expr* e1, const Expr* e2) const {
std::optional<ExprSideEffects>& e1_se = e1->GetOptInfo()->SideEffects();
if ( ! e1_se ) {
bool has_side_effects = false;
auto e1_t = e1->GetType();
const auto& e1_t = e1->GetType();
if ( e1_t->Tag() == TYPE_OPAQUE || e1_t->Tag() == TYPE_ANY )
// These have difficult-to-analyze semantics.