diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-10-14 14:36:00 -0400 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-10-15 00:35:16 -0400 |
commit | 006519816689acef5fd971955e21b7ab17ae65d9 (patch) | |
tree | 0fe0d280bf3e3c4e8db4e58cbd728f4ded429eb4 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | af4fb416bd355960ce93f271a0591f24f58d25ec (diff) | |
download | llvm-006519816689acef5fd971955e21b7ab17ae65d9.zip llvm-006519816689acef5fd971955e21b7ab17ae65d9.tar.gz llvm-006519816689acef5fd971955e21b7ab17ae65d9.tar.bz2 |
clang-{tools,unittests}: Stop using SourceManager::getBuffer, NFC
Update clang-tools-extra, clang/tools, clang/unittests to migrate from
`SourceManager::getBuffer`, which returns an always dereferenceable
`MemoryBuffer*`, to `getBufferOrNone` or `getBufferOrFake`, both of
which return a `MemoryBufferRef`, depending on whether the call site was
checking for validity of the buffer. No functionality change intended.
Differential Revision: https://reviews.llvm.org/D89416
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions