Skip to content

Commit 8938269

Browse files
committed
Upgrade LLVM
Includes rust-lang/llvm#80 Includes rust-lang/llvm#79 Also adds tests and thus fixes #24194
1 parent f09576c commit 8938269

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

src/rustllvm/llvm-rebuild-trigger

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# If this file is modified, then llvm will be (optionally) cleaned and then rebuilt.
22
# The actual contents of this file do not matter, but to trigger a change on the
33
# build bots then the contents should be changed so git updates the mtime.
4-
2017-05-13
4+
2017-06-03
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
#![crate_type="lib"]
11+
12+
#[no_mangle]
13+
pub fn alloc_zeroed_test(size: u8) {
14+
// CHECK-LABEL: @alloc_zeroed_test
15+
// CHECK-NEXT: start:
16+
// CHECK-NEXT: ret void
17+
let x = vec![0u8; size as usize];
18+
drop(x);
19+
}
20+
21+
#[no_mangle]
22+
pub fn alloc_test(data: u32) {
23+
// CHECK-LABEL: @alloc_test
24+
// CHECK-NEXT: start:
25+
// CHECK-NEXT: ret void
26+
let x = Box::new(data);
27+
drop(x);
28+
}

0 commit comments

Comments
 (0)