Store THIR in IndexVecs instead of an Arena

This commit is contained in:
LeSeulArtichaut
2021-04-03 19:58:46 +02:00
parent e78bccfbc0
commit dc3eabd487
18 changed files with 686 additions and 633 deletions

View File

@@ -574,7 +574,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
crate fn break_scope(
&mut self,
mut block: BasicBlock,
value: Option<&Expr<'_, 'tcx>>,
value: Option<&Expr<'tcx>>,
target: BreakableTarget,
source_info: SourceInfo,
) -> BlockAnd<()> {
@@ -933,7 +933,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
crate fn test_bool(
&mut self,
mut block: BasicBlock,
condition: &Expr<'_, 'tcx>,
condition: &Expr<'tcx>,
source_info: SourceInfo,
) -> (BasicBlock, BasicBlock) {
let cond = unpack!(block = self.as_local_operand(block, condition));