From 2c8115482312fc0c7ce836f0f0886d0e153183eb Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Wed, 9 Jun 2021 00:42:21 +0000 Subject: [PATCH] Add llvm_unreacheable to silence warning "not all control paths return a value" (NFC) --- mlir/lib/IR/SymbolTable.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mlir/lib/IR/SymbolTable.cpp b/mlir/lib/IR/SymbolTable.cpp index aef7b92..9f145a2 100644 --- a/mlir/lib/IR/SymbolTable.cpp +++ b/mlir/lib/IR/SymbolTable.cpp @@ -385,6 +385,7 @@ raw_ostream &mlir::operator<<(raw_ostream &os, case SymbolTable::Visibility::Nested: return os << "nested"; } + llvm_unreachable("Unexpected visibility"); } //===----------------------------------------------------------------------===// -- 2.7.4