diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-07-19 09:49:13 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-07-19 09:51:35 +0000 |
| commit | f8f5d7aab28b9c310b4312b5d38c80fe4dc6df02 (patch) | |
| tree | ae3adba66054e995b16877672058d762a6c8b063 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 348f26e40957c2a2469f0ea2b41c403803de8075 (diff) | |
| download | rust-f8f5d7aab28b9c310b4312b5d38c80fe4dc6df02.tar.gz rust-f8f5d7aab28b9c310b4312b5d38c80fe4dc6df02.zip | |
Replace `if let` with `unwrap` in `prepare_vtable_segments`
Reasoning: if the stack is empty, the loop will be infinite, so the assumption is that the stack can't be non empty. Unwrap makes the assumption more clear (and removes an indentation level)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
