apple / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This fork is used to manage Apple’s stable releases of Clang as well as support the Swift project.
https://llvm.org
Other
1.09k stars 320 forks source link

[lldb] Fix returns in AddObjectFileToReflectionContext #8916

Closed augusto2112 closed 1 week ago

augusto2112 commented 1 week ago

At some point the return type of AddObjectFileToReflectionContext was changed from bool to std::optional. However the return statements werent updated, and returns that should be "none" were being implictly being converted to some(0).

(cherry picked from commit d47a219405bfaf89a5812f20db32ce71174f9a48)