diff options
author | Vedant Kumar <vsk@apple.com> | 2020-03-02 16:56:17 -0800 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2020-03-02 16:59:09 -0800 |
commit | d64a22a2add97ff1ae28acb18c9f6ea76a26ecf3 (patch) | |
tree | 442ade2b52db01fec3ed7780922bd0c6eb215ab7 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 29a4239d31c6d8ccc557afbe0999aa096ca95cc6 (diff) | |
download | llvm-d64a22a2add97ff1ae28acb18c9f6ea76a26ecf3.zip llvm-d64a22a2add97ff1ae28acb18c9f6ea76a26ecf3.tar.gz llvm-d64a22a2add97ff1ae28acb18c9f6ea76a26ecf3.tar.bz2 |
[LiveDebugValues] Prevent some misuse of LocIndex::fromRawInteger, NFC
Make it a compile-time error to pass an int/unsigned/etc to
fromRawInteger.
Hopefully this prevents errors of the form:
```
for (unsigned ID : getVarLocs()) {
auto VL = LocMap[LocIndex::fromRawInteger(ID)];
...
```
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions