[clang] 06387f9 - Revert "[clang-rename] Exit gracefully when no input provided"

Shivam Gupta via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 16 22:02:18 PDT 2023


Author: Shivam Gupta
Date: 2023-04-17T10:31:40+05:30
New Revision: 06387f94cfdf6bbd37ac3b925a50410e11a1fc9d

URL: https://github.com/llvm/llvm-project/commit/06387f94cfdf6bbd37ac3b925a50410e11a1fc9d
DIFF: https://github.com/llvm/llvm-project/commit/06387f94cfdf6bbd37ac3b925a50410e11a1fc9d.diff

LOG: Revert "[clang-rename] Exit gracefully when no input provided"

This reverts commit 726199146a0bb53315ade042e759c65e6d96d556.

This broke the buildbot -
https://lab.llvm.org/buildbot#builders/139/builds/39267

Added: 
    

Modified: 
    clang/tools/clang-rename/ClangRename.cpp

Removed: 
    


################################################################################
diff  --git a/clang/tools/clang-rename/ClangRename.cpp b/clang/tools/clang-rename/ClangRename.cpp
index 7ba1978f0774..e7ceac7dbf30 100644
--- a/clang/tools/clang-rename/ClangRename.cpp
+++ b/clang/tools/clang-rename/ClangRename.cpp
@@ -126,9 +126,6 @@ int main(int argc, const char **argv) {
         SymbolOffsets.push_back(Info.Offset);
       NewNames.push_back(Info.NewName);
     }
-  } else {
-    errs() << "clang-rename: input must be provided.\n";
-    return 1;
   }
 
   // Check the arguments for correctness.


        


More information about the cfe-commits mailing list