projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46148f2
)
[NFC] Add a llvm_unreachable to silence a warning in SubstObjCTypeArgsVisitor
author
Bruno Ricci
<riccibrun@gmail.com>
Sun, 17 Feb 2019 19:18:38 +0000
(19:18 +0000)
committer
Bruno Ricci
<riccibrun@gmail.com>
Sun, 17 Feb 2019 19:18:38 +0000
(19:18 +0000)
All cases in the switch are covered. NFC.
llvm-svn: 354233
clang/lib/AST/Type.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/Type.cpp
b/clang/lib/AST/Type.cpp
index
aca82e2
..
072b0e4
100644
(file)
--- a/
clang/lib/AST/Type.cpp
+++ b/
clang/lib/AST/Type.cpp
@@
-1184,6
+1184,7
@@
struct SubstObjCTypeArgsVisitor
return Ctx.getObjCObjectPointerType(resultTy);
}
}
+ llvm_unreachable("Unexpected ObjCSubstitutionContext!");
}
QualType VisitFunctionType(const FunctionType *funcType) {