summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorShivam Gupta <Shivam.Gupta2@amd.com>2023-04-26 17:45:27 +0530
committerShivam Gupta <Shivam.Gupta2@amd.com>2023-04-26 20:23:14 +0530
commit62eec1584d2cd7634c31d4b82215fa8e260cf3b8 (patch)
tree72319e70d5cf03e00731a507066c9b6d3a107345 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent24706aff15c12f8f6eb01a61ad61d97038f07904 (diff)
[clang-rename] Exit gracefully when no input provided
clang-rename on a non existing file segfaults Command to run - $ clang-rename -offset=0 -new-name=plop asdasd Error while processing llvm-project/asdasd. clang-rename: llvm-project/llvm/include/llvm/Support/ErrorOr.h:237: llvm::ErrorOr<T>::storage_type* llvm::ErrorOr<T>::getStorage() [with T = const clang::FileEntry*; llvm::ErrorOr<T>::storage_type = const clang::FileEntry*]: Assertion `!HasError && "Cannot get value when an error exists!"' failed. [1] 827497 IOT instruction clang-rename -offset=0 -new-name=plop asdasd This fixes https://github.com/llvm/llvm-project/issues/36471. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D148439
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions