[all-commits] [llvm/llvm-project] 5750be: [CFI][annotation] Leave alone function pointers in...

yozhu via All-commits all-commits at lists.llvm.org
Fri Feb 16 04:53:54 PST 2024


  Branch: refs/heads/release/18.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 5750be5fc5d130c62f3f7703926ac2c8c4992586
      https://github.com/llvm/llvm-project/commit/5750be5fc5d130c62f3f7703926ac2c8c4992586
  Author: yozhu <101743168+yozhu at users.noreply.github.com>
  Date:   2024-02-16 (Fri, 16 Feb 2024)

  Changed paths:
    M llvm/lib/Transforms/IPO/LowerTypeTests.cpp
    A llvm/test/Transforms/LowerTypeTests/cfi-annotation.ll

  Log Message:
  -----------
  [CFI][annotation] Leave alone function pointers in function annotations (#81673)

Function annotation, as part of llvm.metadata, is for the function
itself and doesn't apply to its corresponding jump table entry, so with
CFI we shouldn't replace function pointer in function annotation with
pointer to its corresponding jump table entry.

(cherry picked from commit c7a0db1e20251f436e3d500eac03bd9be1d88b45)




More information about the All-commits mailing list