The function had very complicated signature, because it was trying to
avoid making unnecessary copies of the Scalar object. However, this
class is not hot enough to worry about these kinds of optimizations. My
making copies unconditionally, we can simplify the function and all of
its call sites.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/include/lldb/Utility/Scalar.h | ||
---|---|---|
268–276 | If we're worried about the seemingly random usage of const&, we could also make the copies inside the functions, or change everything to use value parameters... |
If we're worried about the seemingly random usage of const&, we could also make the copies inside the functions, or change everything to use value parameters...