mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-23 21:13:02 +02:00
7ed9f33690
This code attempts to truncate IntPtrTy to i32, which may be the same type. llvm-svn: 256205
22 lines
418 B
LLVM
22 lines
418 B
LLVM
; PR25902: gold plugin crash.
|
|
; RUN: opt -mtriple=i686-pc -S -lowerbitsets < %s
|
|
|
|
define void @f(void ()* %p) {
|
|
entry:
|
|
%a = bitcast void ()* %p to i8*, !nosanitize !1
|
|
%b = call i1 @llvm.bitset.test(i8* %a, metadata !"_ZTSFvvE"), !nosanitize !1
|
|
ret void
|
|
}
|
|
|
|
define void @g() {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
declare i1 @llvm.bitset.test(i8*, metadata)
|
|
|
|
!llvm.bitsets = !{!0}
|
|
|
|
!0 = !{!"_ZTSFvvE", void ()* @g, i64 0}
|
|
!1 = !{}
|