Please sign in to comment.
Core/Boot/Boot: Amend use-after-move cases in GenerateFromFile()
In terms of order of operations, the move would occur first before the construction of the relevant reader would occur. However, given the local variable 'path' was declared const, this bug actually wouldn't occur, as std::move on a const variable does nothing (in a non-mutable context), resulting in a copy instead, masking this issue. Given this is a bug waiting to happen, we correct the code.
- Loading branch information...