]> git.lizzy.rs Git - rust.git/commitdiff
Update LLVM to fix nightly build failures
authorBjörn Steinbrink <bsteinbr@gmail.com>
Fri, 11 Sep 2015 09:46:01 +0000 (11:46 +0200)
committerBjörn Steinbrink <bsteinbr@gmail.com>
Fri, 11 Sep 2015 15:40:37 +0000 (17:40 +0200)
src/llvm
src/rustllvm/llvm-auto-clean-trigger
src/test/run-pass/allocator-override.rs

index 168f91ce5cbf8933e47f339911f0f46a48714852..3c88bf78f97d2cd8130b16eecb0eeb84888cd494 160000 (submodule)
--- a/src/llvm
+++ b/src/llvm
@@ -1 +1 @@
-Subproject commit 168f91ce5cbf8933e47f339911f0f46a48714852
+Subproject commit 3c88bf78f97d2cd8130b16eecb0eeb84888cd494
index 094d485da6af53cd8d1a363aa25a59b91dfd5966..df9dc8bc8418026dfd0847ce6b7cfdeacd0af00b 100644 (file)
@@ -1,4 +1,4 @@
 # If this file is modified, then llvm will be forcibly cleaned and then rebuilt.
 # The actual contents of this file do not matter, but to trigger a change on the
 # build bots then the contents should be changed so git updates the mtime.
-2015-09-02
+2015-09-11
index 993ea414914fbdf32c7217cedc664ffc4a77993f..d7a8e79bfbee84f5951461887676e2370f5ebc65 100644 (file)
 // no-prefer-dynamic
 // aux-build:allocator-dummy.rs
 
+#![feature(test)]
+
 extern crate allocator_dummy;
+extern crate test;
 
 fn main() {
     unsafe {
         let before = allocator_dummy::HITS;
-        let b = Box::new(3);
+        let mut b = Box::new(3);
+        test::black_box(&mut b); // Make sure the allocation is not optimized away
         assert_eq!(allocator_dummy::HITS - before, 1);
         drop(b);
         assert_eq!(allocator_dummy::HITS - before, 2);