[all-commits] [llvm/llvm-project] d957da: [clang][Interp] Allow taking the address of a non-...

Timm Baeder via All-commits all-commits at lists.llvm.org
Sat Jun 29 10:56:06 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d957da83791930a3c23f4f936ca7c7644c4b07a4
      https://github.com/llvm/llvm-project/commit/d957da83791930a3c23f4f936ca7c7644c4b07a4
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2024-06-29 (Sat, 29 Jun 2024)

  Changed paths:
    M clang/lib/AST/Interp/Compiler.cpp
    M clang/lib/AST/Interp/Interp.h
    M clang/test/AST/Interp/references.cpp

  Log Message:
  -----------
  [clang][Interp] Allow taking the address of a non-const global reference

This is not a read, but the GetGlobal op before failed if the reference
we were taking a pointer of was non-const. Use GetGlobalUnchecked
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