[all-commits] [llvm/llvm-project] 44ff94: [Diagnostics] Return rvalue reference from tempora...

Jonas Hahnfeld via All-commits all-commits at lists.llvm.org
Wed Mar 12 18:07:29 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 44ff94e99e0380d520d7e9803100044867ab08db
      https://github.com/llvm/llvm-project/commit/44ff94e99e0380d520d7e9803100044867ab08db
  Author: Jonas Hahnfeld <hahnjo at hahnjo.de>
  Date:   2025-03-13 (Thu, 13 Mar 2025)

  Changed paths:
    M llvm/include/llvm/Analysis/OptimizationRemarkEmitter.h
    M llvm/include/llvm/IR/DiagnosticInfo.h
    M llvm/lib/Analysis/InlineAdvisor.cpp

  Log Message:
  -----------
  [Diagnostics] Return rvalue reference from temporary argument (#127400)

This fixes compilation issues with GCC and C++23:
```
error: cannot bind non-const lvalue reference of type
'llvm::OptimizationRemarkMissed&' to an rvalue of type
'llvm::OptimizationRemarkMissed'
```

Closes #105778



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