diff options
author | Alex Langford <alangford@apple.com> | 2024-01-08 10:52:00 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-08 10:52:00 -0800 |
commit | 5cbf74b012c10e9cc841a27cd5d7335e556f47dd (patch) | |
tree | 67be547abb406c2dd66da03abb8a20fcb9ece6d2 /clang/lib/Lex/ModuleMap.cpp | |
parent | 07d6fbf8d80083470b4371f2ddabd656a9c317e6 (diff) | |
download | llvm-5cbf74b012c10e9cc841a27cd5d7335e556f47dd.zip llvm-5cbf74b012c10e9cc841a27cd5d7335e556f47dd.tar.gz llvm-5cbf74b012c10e9cc841a27cd5d7335e556f47dd.tar.bz2 |
[lldb][NFCI] Change return type of BreakpointIDList::GetBreakpointIDAtIndex (#77166)
There are 2 motivations here:
1.) There is no need to hand out constant references to BreakpointIDs,
they are only 8 bytes big. In addition, every use of this method already
makes a copy anyway.
2.) Each BreakpointIDList held onto an invalid BreakpointID specifically
to
prevent lifetime issues. Returning a value means you can return an
invalid BreakpointID instead of needing to allocate storage for an
invalid BreakpointID.
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions