Index: llvm/lib/ExecutionEngine/JITLink/JITLink.cpp =================================================================== --- llvm/lib/ExecutionEngine/JITLink/JITLink.cpp +++ llvm/lib/ExecutionEngine/JITLink/JITLink.cpp @@ -74,6 +74,7 @@ case Linkage::Weak: return "weak"; } + llvm_unreachable("Unrecognized linkage"); } const char *getScopeName(Scope S) { @@ -85,6 +86,7 @@ case Scope::Local: return "local"; } + llvm_unreachable("Unrecognized scope"); } raw_ostream &operator<<(raw_ostream &OS, const Block &B) { Index: llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h =================================================================== --- llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h +++ llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h @@ -107,7 +107,7 @@ uint8_t Sect, uint16_t Desc, Linkage L, Scope S) : Name(Name), Value(Value), Type(Type), Sect(Sect), Desc(Desc), L(L), S(S) { - assert(!Name || !Name->empty() && "Name must be none or non-empty"); + assert((!Name || !Name->empty()) && "Name must be none or non-empty"); } public: