You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
16
external/llvm/test/Transforms/CodeGenPrepare/crash-on-large-allocas.ll
vendored
Normal file
16
external/llvm/test/Transforms/CodeGenPrepare/crash-on-large-allocas.ll
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
; RUN: opt -S -codegenprepare %s -o - | FileCheck %s
|
||||
;
|
||||
; Ensure that we don't {crash,return a bad value} when given an alloca larger
|
||||
; than what a pointer can represent.
|
||||
|
||||
target datalayout = "p:16:16"
|
||||
|
||||
; CHECK-LABEL: @alloca_overflow_is_unknown(
|
||||
define i16 @alloca_overflow_is_unknown() {
|
||||
%i = alloca i8, i32 65537
|
||||
%j = call i16 @llvm.objectsize.i16.p0i8(i8* %i, i1 false, i1 false)
|
||||
; CHECK: ret i16 -1
|
||||
ret i16 %j
|
||||
}
|
||||
|
||||
declare i16 @llvm.objectsize.i16.p0i8(i8*, i1, i1)
|
Reference in New Issue
Block a user