[all-commits] [llvm/llvm-project] cb7b10: [clang][bytecode] Fail on mutable reads from revis...

Timm Baeder via All-commits all-commits at lists.llvm.org
Wed Mar 26 04:29:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb7b10c66ef8a62f22a77a1480bba382863fcc90
      https://github.com/llvm/llvm-project/commit/cb7b10c66ef8a62f22a77a1480bba382863fcc90
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2025-03-26 (Wed, 26 Mar 2025)

  Changed paths:
    M clang/lib/AST/ByteCode/Interp.cpp
    A clang/test/AST/ByteCode/codegen-mutable-read.cpp

  Log Message:
  -----------
  [clang][bytecode] Fail on mutable reads from revisited variables (#133064)

When revisiting a variable, we do that by simply calling visitDecl() for
it, which means it will end up with the same EvalID as the rest of the
evaluation - but this way we end up allowing reads from mutable
variables. Disallow that.



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