[all-commits] [llvm/llvm-project] c3cae9: [clang][bytecode] Fix const-ness of local primitiv...

Timm Baeder via All-commits all-commits at lists.llvm.org
Sun Feb 16 21:24:51 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c3cae9d6fccc96297e832a09f5230346ef4c42f3
      https://github.com/llvm/llvm-project/commit/c3cae9d6fccc96297e832a09f5230346ef4c42f3
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2025-02-17 (Mon, 17 Feb 2025)

  Changed paths:
    M clang/lib/AST/ByteCode/Compiler.cpp
    A clang/test/AST/ByteCode/non-const-local-temporary.cpp

  Log Message:
  -----------
  [clang][bytecode] Fix const-ness of local primitive temporary (#127405)

This used to cause certain std::range tests in libc++ to be diagnosed as
modifying a const-qualified field, because we set the IsConst flag to
true unconditionally. Check the type instead.



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