[all-commits] [llvm/llvm-project] 112014: [Clang][NFC] Use temporary instead of one use loca...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Wed Apr 23 13:46:27 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 112014ba67792e00ff719d640a5fddb79d78674d
      https://github.com/llvm/llvm-project/commit/112014ba67792e00ff719d640a5fddb79d78674d
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2025-04-23 (Wed, 23 Apr 2025)

  Changed paths:
    M clang/lib/Sema/SemaExprCXX.cpp

  Log Message:
  -----------
  [Clang][NFC] Use temporary instead of one use local variable when creating APValue (#137029)

Static analysis flagged this code b/c we should have been using
std::move when passing by value since the value is not used anymore. In
this case the simpler fix is just to use a temporary value as many of
the other cases where we simply use MakeIntValue to then create an
APValue result from it.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list