Skip to content

Commit 76c6636

Browse files
committed
Fix typo by me
1 parent 537da97 commit 76c6636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/intrinsic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
144144
}
145145
"size_of_val" => {
146146
let tp_ty = substs.type_at(0);
147-
if bcx.ccx.shared().type_is_size(ty_ty) {
147+
if bcx.ccx.shared().type_is_sized(tp_ty) {
148148
C_usize(ccx, ccx.size_of(tp_ty).bytes())
149149
} else if bcx.ccx.shared().type_is_dynsized(tp_ty) {
150150
if let OperandValue::Pair(_, meta) = args[0].val {

0 commit comments

Comments
 (0)