@@ -94,7 +94,7 @@ pub fn const_vec(cx: @mut CrateContext, e: &ast::Expr, es: &[@ast::Expr])
9494 let ( vs, inlineable) = vec:: unzip ( es. iter ( ) . map ( |e| const_expr ( cx, * e) ) ) ;
9595 // If the vector contains enums, an LLVM array won't work.
9696 let v = if vs. iter ( ) . any ( |vi| val_ty ( * vi) != llunitty) {
97- C_struct ( vs)
97+ C_struct ( vs, false )
9898 } else {
9999 C_array ( llunitty, vs)
100100 } ;
@@ -186,7 +186,7 @@ pub fn const_expr(cx: @mut CrateContext, e: &ast::Expr) -> (ValueRef, bool) {
186186 match adjustment {
187187 None => { }
188188 Some ( @ty:: AutoAddEnv ( ty:: re_static, ast:: BorrowedSigil ) ) => {
189- llconst = C_struct ( [ llconst, C_null ( Type :: opaque_box ( cx) . ptr_to ( ) ) ] )
189+ llconst = C_struct ( [ llconst, C_null ( Type :: opaque_box ( cx) . ptr_to ( ) ) ] , false )
190190 }
191191 Some ( @ty:: AutoAddEnv ( ref r, ref s) ) => {
192192 cx. sess . span_bug ( e. span , format ! ( "unexpected static function: \
@@ -227,7 +227,7 @@ pub fn const_expr(cx: @mut CrateContext, e: &ast::Expr) -> (ValueRef, bool) {
227227 match ty:: get ( ty) . sty {
228228 ty:: ty_evec( _, ty:: vstore_fixed( * ) ) => {
229229 let size = machine:: llsize_of ( cx, val_ty ( llconst) ) ;
230- llconst = C_struct ( [ llptr, size] ) ;
230+ llconst = C_struct ( [ llptr, size] , false ) ;
231231 }
232232 _ => { }
233233 }
@@ -559,7 +559,7 @@ fn const_expr_unadjusted(cx: @mut CrateContext,
559559 llvm:: LLVMSetGlobalConstant ( gv, True ) ;
560560 SetLinkage ( gv, PrivateLinkage ) ;
561561 let p = const_ptrcast ( cx, gv, llunitty) ;
562- ( C_struct ( [ p, sz] ) , false )
562+ ( C_struct ( [ p, sz] , false ) , false )
563563 }
564564 _ => cx. sess . span_bug ( e. span , "bad const-slice expr" )
565565 }
@@ -575,7 +575,7 @@ fn const_expr_unadjusted(cx: @mut CrateContext,
575575 } ;
576576 let vs = vec:: from_elem ( n, const_expr ( cx, elem) . first ( ) ) ;
577577 let v = if vs. iter ( ) . any ( |vi| val_ty ( * vi) != llunitty) {
578- C_struct ( vs)
578+ C_struct ( vs, false )
579579 } else {
580580 C_array ( llunitty, vs)
581581 } ;
0 commit comments