r298712 - Fix MSVC 'not all control paths return a value' warning.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 24 09:59:14 PDT 2017
Author: rksimon
Date: Fri Mar 24 11:59:14 2017
New Revision: 298712
URL: http://llvm.org/viewvc/llvm-project?rev=298712&view=rev
Log:
Fix MSVC 'not all control paths return a value' warning.
Modified:
cfe/trunk/lib/Index/IndexingContext.cpp
Modified: cfe/trunk/lib/Index/IndexingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/IndexingContext.cpp?rev=298712&r1=298711&r2=298712&view=diff
==============================================================================
--- cfe/trunk/lib/Index/IndexingContext.cpp (original)
+++ cfe/trunk/lib/Index/IndexingContext.cpp Fri Mar 24 11:59:14 2017
@@ -235,6 +235,7 @@ static bool shouldReportOccurrenceForSys
case SymbolRole::RelationContainedBy:
return true;
}
+ llvm_unreachable("Unsupported SymbolRole value!");
});
return accept;
};
More information about the cfe-commits
mailing list