[all-commits] [llvm/llvm-project] 5c1db3: [Clang] Functions called in discarded statements s...

cor3ntin via All-commits all-commits at lists.llvm.org
Mon May 19 22:22:24 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c1db3823e0d7ac820c938ca81adbffda3d98219
      https://github.com/llvm/llvm-project/commit/5c1db3823e0d7ac820c938ca81adbffda3d98219
  Author: cor3ntin <corentinjabot at gmail.com>
  Date:   2025-05-20 (Tue, 20 May 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Sema/EnterExpressionEvaluationContext.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaCoroutine.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaLambda.cpp
    M clang/test/CXX/stmt.stmt/stmt.select/stmt.if/p2.cpp

  Log Message:
  -----------
  [Clang] Functions called in discarded statements should not be instantiated (#140576)

Functions referenced in discarded statements could be treated as
odr-used
because we did not properly set the correct evaluation context in some
places.

Fixes https://github.com/llvm/llvm-project/issues/140449



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