Add llvm_unreacheable to silence warning "not all control paths return a value" ...
authorMehdi Amini <joker.eph@gmail.com>
Wed, 9 Jun 2021 00:42:21 +0000 (00:42 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 9 Jun 2021 00:42:57 +0000 (00:42 +0000)
mlir/lib/IR/SymbolTable.cpp

index aef7b92..9f145a2 100644 (file)
@@ -385,6 +385,7 @@ raw_ostream &mlir::operator<<(raw_ostream &os,
   case SymbolTable::Visibility::Nested:
     return os << "nested";
   }
+  llvm_unreachable("Unexpected visibility");
 }
 
 //===----------------------------------------------------------------------===//