mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
d817c75cad
Summary: Allow IntToPtrInst to carry !dereferenceable metadata tag. This is valid since !dereferenceable can be only be applied to pointer type values. Change-Id: If8a6e3c616f073d51eaff52ab74535c29ed497b4 Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64954 llvm-svn: 366826
7 lines
147 B
LLVM
7 lines
147 B
LLVM
; RUN: llvm-as < %s -o /dev/null
|
|
|
|
define i8* @f_0(i8 %val) {
|
|
%ptr = inttoptr i8 %val to i8*, !dereferenceable_or_null !{i64 2}
|
|
ret i8* %ptr
|
|
}
|