[all-commits] [llvm/llvm-project] abe8b3: Fix vtbl field addr space

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Thu Sep 16 07:58:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: abe8b354e37d8d6a163a6402d8e68ddcfc462dfc
      https://github.com/llvm/llvm-project/commit/abe8b354e37d8d6a163a6402d8e68ddcfc462dfc
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2021-09-16 (Thu, 16 Sep 2021)

  Changed paths:
    M clang/lib/CodeGen/CGClass.cpp

  Log Message:
  -----------
  Fix vtbl field addr space

Storing the vtable field of an object should use the same address space as
the this pointer. Currently it is assumed to be addr space 0 but this may not
be true.

This assumption (added in 054cc3b1b469de4b0cb25d1dc3af43c679c5dc44) caused
issues for the out-of-tree CHERI targets.

Reviewed by: John McCall, Alexander Richardson

Differential Revision: https://reviews.llvm.org/D109841




More information about the All-commits mailing list