[Mlir-commits] [mlir] 2c81154 - Add llvm_unreacheable to silence warning "not all control paths return a value" (NFC)

Mehdi Amini llvmlistbot at llvm.org
Tue Jun 8 17:43:10 PDT 2021


Author: Mehdi Amini
Date: 2021-06-09T00:42:57Z
New Revision: 2c8115482312fc0c7ce836f0f0886d0e153183eb

URL: https://github.com/llvm/llvm-project/commit/2c8115482312fc0c7ce836f0f0886d0e153183eb
DIFF: https://github.com/llvm/llvm-project/commit/2c8115482312fc0c7ce836f0f0886d0e153183eb.diff

LOG: Add llvm_unreacheable to silence warning "not all control paths return a value" (NFC)

Added: 
    

Modified: 
    mlir/lib/IR/SymbolTable.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/IR/SymbolTable.cpp b/mlir/lib/IR/SymbolTable.cpp
index aef7b92bce8c3..9f145a2db9ffb 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");
 }
 
 //===----------------------------------------------------------------------===//


        


More information about the Mlir-commits mailing list