From: Simon Pilgrim Date: Fri, 24 Mar 2017 16:59:14 +0000 (+0000) Subject: Fix MSVC 'not all control paths return a value' warning. X-Git-Tag: llvmorg-5.0.0-rc1~9238 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dfbf049e7ffaf8cfcd5287e1a806bb085d5c2f90;p=platform%2Fupstream%2Fllvm.git Fix MSVC 'not all control paths return a value' warning. llvm-svn: 298712 --- diff --git a/clang/lib/Index/IndexingContext.cpp b/clang/lib/Index/IndexingContext.cpp index c5ccf45..f393b11 100644 --- a/clang/lib/Index/IndexingContext.cpp +++ b/clang/lib/Index/IndexingContext.cpp @@ -235,6 +235,7 @@ static bool shouldReportOccurrenceForSystemDeclOnlyMode( case SymbolRole::RelationContainedBy: return true; } + llvm_unreachable("Unsupported SymbolRole value!"); }); return accept; };