File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ pub(crate) fn codegen_const_value<'tcx>(
116
116
}
117
117
118
118
match const_val {
119
- ConstValue :: ZeroSized => unreachable ! ( ) , // we already handles ZST above
119
+ ConstValue :: ZeroSized => unreachable ! ( ) , // we already handled ZST above
120
120
ConstValue :: Scalar ( x) => match x {
121
121
Scalar :: Int ( int) => {
122
122
if fx. clif_type ( layout. ty ) . is_some ( ) {
@@ -200,7 +200,7 @@ pub(crate) fn codegen_const_value<'tcx>(
200
200
CValue :: by_val ( val, layout)
201
201
}
202
202
} ,
203
- ConstValue :: ByRef { alloc_id, offset } => {
203
+ ConstValue :: Indirect { alloc_id, offset } => {
204
204
let alloc = fx. tcx . global_alloc ( alloc_id) . unwrap_memory ( ) ;
205
205
// FIXME: avoid creating multiple allocations for the same AllocId?
206
206
CValue :: by_ref (
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
172
172
. expect ( "simd_shuffle idx not const" ) ;
173
173
174
174
let idx_bytes = match idx_const {
175
- ConstValue :: ByRef { alloc_id, offset } => {
175
+ ConstValue :: Indirect { alloc_id, offset } => {
176
176
let alloc = fx. tcx . global_alloc ( alloc_id) . unwrap_memory ( ) ;
177
177
let size = Size :: from_bytes (
178
178
4 * ret_lane_count, /* size_of([u32; ret_lane_count]) */
You can’t perform that action at this time.
0 commit comments