From 95f4120f09cf06203cc25e31fe743dc0a8157e06 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 31 Aug 2018 09:24:09 +0000 Subject: [PATCH] Fix MSVC "not all control paths return a value" warning. NFCI. llvm-svn: 341191 --- llvm/lib/XRay/FDRRecordProducer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/XRay/FDRRecordProducer.cpp b/llvm/lib/XRay/FDRRecordProducer.cpp index 84d75cc9..ef2f6a4 100644 --- a/llvm/lib/XRay/FDRRecordProducer.cpp +++ b/llvm/lib/XRay/FDRRecordProducer.cpp @@ -78,6 +78,7 @@ metadataRecordType(const XRayFileHeader &Header, uint8_t T) { case MetadataRecordKinds::EnumEndMarker: llvm_unreachable("Invalid MetadataRecordKind"); } + llvm_unreachable("Unhandled MetadataRecordKinds enum value"); } } // namespace -- 2.7.4