diff --git a/clang/tools/clang-rename/ClangRename.cpp b/clang/tools/clang-rename/ClangRename.cpp --- a/clang/tools/clang-rename/ClangRename.cpp +++ b/clang/tools/clang-rename/ClangRename.cpp @@ -126,6 +126,9 @@ SymbolOffsets.push_back(Info.Offset); NewNames.push_back(Info.NewName); } + } else { + errs() << "clang-rename: No input provided.\n"; + return 1; } // Check the arguments for correctness.