diff options
author | Nathan James <n.james93@hotmail.co.uk> | 2020-11-04 01:36:13 +0000 |
---|---|---|
committer | Nathan James <n.james93@hotmail.co.uk> | 2020-11-04 01:36:14 +0000 |
commit | cb9d0e8819ad7ca2f349a57d62ea2af02d631dfa (patch) | |
tree | 7009eaaad81573ef249f6a1492c5ea5ae8e607d9 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 492b1d78d5c555a34e3d21a99081e7dea0b53b55 (diff) | |
download | llvm-cb9d0e8819ad7ca2f349a57d62ea2af02d631dfa.zip llvm-cb9d0e8819ad7ca2f349a57d62ea2af02d631dfa.tar.gz llvm-cb9d0e8819ad7ca2f349a57d62ea2af02d631dfa.tar.bz2 |
[clangd][NFC] Make Located::operator->() use pointer sematics
This enables using the arrow operator to access members of the contained item.
```lang=c++
Located<std::string> X;
const char* CStr = X->c_str();
```
This is inline with how classes like `Optional` handle the arrow operator.
Reviewed By: kadircet
Differential Revision: https://reviews.llvm.org/D90682
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions