clang-refactor: Use llvm_unreachable in an unused override
authorAlex Lorenz <arphaman@gmail.com>
Mon, 16 Oct 2017 18:07:16 +0000 (18:07 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 16 Oct 2017 18:07:16 +0000 (18:07 +0000)
As suggested by David Blaikie!

llvm-svn: 315923

clang/tools/clang-refactor/ClangRefactor.cpp

index 800729d..8a5c8e6 100644 (file)
@@ -315,7 +315,7 @@ public:
   }
 
   void handle(SymbolOccurrences Occurrences) override {
-    RefactoringResultConsumer::handle(std::move(Occurrences));
+    llvm_unreachable("symbol occurrence results are not handled yet");
   }
 
   const AtomicChanges &getSourceChanges() const { return SourceChanges; }