]> git.lizzy.rs Git - rust.git/commitdiff
Integrate new arm patch and fix an LLVM bug
authorAlex Crichton <alex@alexcrichton.com>
Fri, 2 Aug 2013 07:55:49 +0000 (00:55 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 4 Aug 2013 17:58:23 +0000 (10:58 -0700)
Thanks @luqama!

src/librustc/lib/llvm.rs
src/llvm

index 40fe9bd5fc6a10965d751879af0071ecc4e0c567..356cdaf754eebe7b199bf20870b46568e552d317 100644 (file)
@@ -89,7 +89,7 @@ pub enum Attribute {
     // Not added to LLVM yet, so may need to stay updated if LLVM changes.
     // FIXME(#8199): if this changes, be sure to change the relevant constant
     //               down below
-    FixedStackSegment = 1 << 41,
+    // FixedStackSegment = 1 << 41,
 }
 
 // enum for the LLVM IntPredicate type
@@ -2124,10 +2124,12 @@ pub fn SetFunctionAttribute(Fn: ValueRef, attr: Attribute) {
 //               Furthermore, if we use a match of any sort then an LLVM
 //               assertion is generated!
 pub fn SetFixedStackSegmentAttribute(Fn: ValueRef) {
+    unsafe {
         let attr = 1u64 << 41;
         let lower = attr & 0xffffffff;
         let upper = (attr >> 32) & 0xffffffff;
         llvm::LLVMAddFunctionAttr(Fn, lower as c_uint, upper as c_uint);
+    }
 }
 /* Memory-managed object interface to type handles. */
 
index e3abef3eedc8d5bad3420c7e29bf2fe80585316a..f67442eee27d3d075a65cf7f9a70f7ec6649ffd1 160000 (submodule)
--- a/src/llvm
+++ b/src/llvm
@@ -1 +1 @@
-Subproject commit e3abef3eedc8d5bad3420c7e29bf2fe80585316a
+Subproject commit f67442eee27d3d075a65cf7f9a70f7ec6649ffd1