1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 21:13:02 +02:00
llvm-mirror/test/Transforms/LowerBitSets/pr25902.ll
Evgeniy Stepanov 7ed9f33690 [cfi] Fix LowerBitSets on 32-bit targets.
This code attempts to truncate IntPtrTy to i32, which may be the same
type.

llvm-svn: 256205
2015-12-21 22:14:04 +00:00

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 = !{}