Skip to content

Commit f41d9b0

Browse files
committed
Add a couple of FIXME's
1 parent c170c94 commit f41d9b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/value_and_place.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ impl<'tcx> CValue<'tcx> {
8585
}
8686

8787
pub(crate) fn by_val(value: Value, layout: TyAndLayout<'tcx>) -> CValue<'tcx> {
88+
// FIXME assert type of value matches the layout
8889
CValue(CValueInner::ByVal(value), layout)
8990
}
9091

@@ -93,6 +94,7 @@ impl<'tcx> CValue<'tcx> {
9394
extra: Value,
9495
layout: TyAndLayout<'tcx>,
9596
) -> CValue<'tcx> {
97+
// FIXME assert type of value and extra matches the layout
9698
CValue(CValueInner::ByValPair(value, extra), layout)
9799
}
98100

0 commit comments

Comments
 (0)