[all-commits] [llvm/llvm-project] 59e136: [clang][Interp] Fix getField() for integral pointe...

Timm Baeder via All-commits all-commits at lists.llvm.org
Tue Aug 6 04:37:33 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 59e13666dd2e81e58253488a29635fb2992ed741
      https://github.com/llvm/llvm-project/commit/59e13666dd2e81e58253488a29635fb2992ed741
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2024-08-06 (Tue, 06 Aug 2024)

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

  Log Message:
  -----------
  [clang][Interp] Fix getField() for integral pointers (#102120)

Instead of just adding the Record::Field offset, instead get the
FieldDecl offset in the RecordLayout.

Unfortunately, the offset we pass to the ops here is not made to easily
go back to a FieldDecl, so we have to iterate over the parent Record.



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