mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
DWARFYAML::emitDebugSections - fix use after std::move warnings. NFCI.
We were using Err after it had been moved into cantFail - avoid this by calling cantFail with Error::success() directly.
This commit is contained in:
parent
b9b03a71fd
commit
c10f7482f0
@ -1033,9 +1033,10 @@ DWARFYAML::emitDebugSections(StringRef YAMLString, bool IsLittleEndian,
|
||||
if (YIn.error())
|
||||
return createStringError(YIn.error(), GeneratedDiag.getMessage());
|
||||
|
||||
cantFail(Error::success());
|
||||
|
||||
StringMap<std::unique_ptr<MemoryBuffer>> DebugSections;
|
||||
Error Err = Error::success();
|
||||
cantFail(std::move(Err));
|
||||
|
||||
for (StringRef SecName : DI.getNonEmptySectionNames())
|
||||
Err = joinErrors(std::move(Err),
|
||||
|
Loading…
x
Reference in New Issue
Block a user