[all-commits] [llvm/llvm-project] 0f4db1: [clang][bytecode] Fix incorrect offset in elem() (...

Timm Baeder via All-commits all-commits at lists.llvm.org
Mon Aug 25 05:10:21 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f4db1a7955e511844d7a685103aa32617fc279d
      https://github.com/llvm/llvm-project/commit/0f4db1a7955e511844d7a685103aa32617fc279d
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2025-08-25 (Mon, 25 Aug 2025)

  Changed paths:
    M clang/lib/AST/ByteCode/EvaluationResult.cpp
    M clang/lib/AST/ByteCode/Pointer.h
    M clang/test/AST/ByteCode/invalid.cpp

  Log Message:
  -----------
  [clang][bytecode] Fix incorrect offset in elem() (#155157)

We need to use the base offset in both cases.
Also, add additional assertions to make sure we don't miss this case
again.

Fixes #155132



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