We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ty::Value
1 parent 7b19e13 commit 2301f3eCopy full SHA for 2301f3e
src/intrinsics/simd.rs
@@ -129,12 +129,7 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
129
return;
130
}
131
132
- let idx = generic_args[2]
133
- .expect_const()
134
- .try_to_valtree()
135
- .expect("expected monomorphic const in codegen")
136
- .0
137
- .unwrap_branch();
+ let idx = generic_args[2].expect_const().to_value().valtree.unwrap_branch();
138
139
assert_eq!(x.layout(), y.layout());
140
let layout = x.layout();
0 commit comments