Index: llvm/lib/ExecutionEngine/JITLink/JITLink.cpp =================================================================== --- llvm/lib/ExecutionEngine/JITLink/JITLink.cpp +++ llvm/lib/ExecutionEngine/JITLink/JITLink.cpp @@ -73,6 +73,8 @@ return "strong"; case Linkage::Weak: return "weak"; + default: + llvm_unreachable("Unrecognized linkage"); } } @@ -84,6 +86,8 @@ return "hidden"; case Scope::Local: return "local"; + default: + llvm_unreachable("Unrecognized scope"); } } 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: