[all-commits] [llvm/llvm-project] 05137e: [clang-repl] Emit const variables only once (#65257)

Jonas Hahnfeld via All-commits all-commits at lists.llvm.org
Tue Oct 3 02:58:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 05137ecfca0bd2f7fa6cd30c771dfacbb8188785
      https://github.com/llvm/llvm-project/commit/05137ecfca0bd2f7fa6cd30c771dfacbb8188785
  Author: Jonas Hahnfeld <jonas.hahnfeld at cern.ch>
  Date:   2023-10-03 (Tue, 03 Oct 2023)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp
    A clang/test/Interpreter/const.cpp

  Log Message:
  -----------
  [clang-repl] Emit const variables only once (#65257)

Disable internal linkage for const variables if IncrementalExtensions
are enabled. Otherwise the variables are emitted multiple times, with
multiple constructions at unique memory locations, during every PTU.




More information about the All-commits mailing list