Files
clang-p2996/llvm/test/Transforms/FunctionImport/Inputs/cg_profile.ll
Yuanfang Chen a223354161 [CGProfile] allows bitcast in metadata node storing function pointers
For example,  during RAUW in IRMover, the `Function` ValueAsMetadata in "CG Profile" could become bitcast.

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D88433
2020-11-13 09:28:21 -08:00

13 lines
284 B
LLVM

target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%class.A = type { [16 x i8] }
define void @bar(%class.A*) {
ret void
}
!llvm.module.flags = !{!1}
!1 = !{i32 1, !"EnableSplitLTOUnit", i32 0}