mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
GCC: Remedy NRVO Fails
Using the `-Wnrvo` flag introduced by GCC 14, I identified a few places where NRVO was clearly intended, but is fumbled.
This commit is contained in:
@@ -39,8 +39,7 @@ static std::unique_ptr<DiscIO::FileInfo> GetFileInfo(const DiscIO::Volume& disc_
|
||||
if (!filesystem)
|
||||
return nullptr;
|
||||
|
||||
std::unique_ptr<DiscIO::FileInfo> info = filesystem->FindFileInfo(path);
|
||||
return info;
|
||||
return filesystem->FindFileInfo(path);
|
||||
}
|
||||
|
||||
static bool VolumeSupported(const DiscIO::Volume& disc_volume)
|
||||
|
||||
Reference in New Issue
Block a user