r354233 - [NFC] Add a llvm_unreachable to silence a warning in SubstObjCTypeArgsVisitor
Bruno Ricci via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 17 11:18:38 PST 2019
Author: brunoricci
Date: Sun Feb 17 11:18:38 2019
New Revision: 354233
URL: http://llvm.org/viewvc/llvm-project?rev=354233&view=rev
Log:
[NFC] Add a llvm_unreachable to silence a warning in SubstObjCTypeArgsVisitor
All cases in the switch are covered. NFC.
Modified:
cfe/trunk/lib/AST/Type.cpp
Modified: cfe/trunk/lib/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Type.cpp?rev=354233&r1=354232&r2=354233&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Type.cpp (original)
+++ cfe/trunk/lib/AST/Type.cpp Sun Feb 17 11:18:38 2019
@@ -1184,6 +1184,7 @@ struct SubstObjCTypeArgsVisitor
return Ctx.getObjCObjectPointerType(resultTy);
}
}
+ llvm_unreachable("Unexpected ObjCSubstitutionContext!");
}
QualType VisitFunctionType(const FunctionType *funcType) {
More information about the cfe-commits
mailing list