NFC don't convert types to identical types
This commit is contained in:
parent
a96d57bdb6
commit
8479945c08
24 changed files with 35 additions and 50 deletions
|
@ -496,7 +496,7 @@ impl<'a, 'tcx> ConstAnalysis<'a, 'tcx> {
|
|||
FlatSet::Elem(scalar) => {
|
||||
let ty = op.ty(self.local_decls, self.tcx);
|
||||
self.tcx.layout_of(self.param_env.and(ty)).map_or(FlatSet::Top, |layout| {
|
||||
FlatSet::Elem(ImmTy::from_scalar(scalar.into(), layout))
|
||||
FlatSet::Elem(ImmTy::from_scalar(scalar, layout))
|
||||
})
|
||||
}
|
||||
FlatSet::Bottom => FlatSet::Bottom,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue