[all-commits] [llvm/llvm-project] 779296: [clang][bytecode] Remove EvalEmitter::OpPC (#208988)

Timm Baeder via All-commits all-commits at lists.llvm.org
Sun Jul 12 00:12:53 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 77929619bc93b86e99f6ae6a9b10ef85a27c4c18
      https://github.com/llvm/llvm-project/commit/77929619bc93b86e99f6ae6a9b10ef85a27c4c18
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2026-07-12 (Sun, 12 Jul 2026)

  Changed paths:
    M clang/lib/AST/ByteCode/EvalEmitter.cpp
    M clang/lib/AST/ByteCode/EvalEmitter.h
    M clang/utils/TableGen/ClangOpcodesEmitter.cpp

  Log Message:
  -----------
  [clang][bytecode] Remove EvalEmitter::OpPC (#208988)

We pass this when evaluting opcodes in EvalEmitter, but we never set it
to anything, so the underlying pointer is always null and we later and
up using the source location of the expression we're evaluating.

This seems to only cause problems when Statement expressions are
involved so far.



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