diff options
author | Joachim Priesner <llvm-project-704996@jspam.de> | 2022-06-24 11:01:35 -0600 |
---|---|---|
committer | Richard <legalize@xmission.com> | 2022-06-25 15:50:13 -0600 |
commit | b2cb7e81f8978ccce5c5e7b316480b88785ca9cc (patch) | |
tree | 6cf25c13fc5912177cf4cb2ac2f5e58670daa36d /llvm/lib/Support/Process.cpp | |
parent | b0d6dd3905db145853c7c744ac92d49b00b1fa20 (diff) | |
download | llvm-b2cb7e81f8978ccce5c5e7b316480b88785ca9cc.zip llvm-b2cb7e81f8978ccce5c5e7b316480b88785ca9cc.tar.gz llvm-b2cb7e81f8978ccce5c5e7b316480b88785ca9cc.tar.bz2 |
[clang-tidy] cppcoreguidelines-virtual-class-destructor: Fix crash when "virtual" keyword is expanded from a macro
Check llvm::Optional before dereferencing it.
Compute VirtualEndLoc differently to avoid an assertion failure
in clang::SourceManager::getFileIDLoaded:
Assertion `0 && "Invalid SLocOffset or bad function choice"' failed
Diffstat (limited to 'llvm/lib/Support/Process.cpp')
0 files changed, 0 insertions, 0 deletions