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:
5e74b2e
)
[Sema] Fix a warning
author
Kazu Hirata
<kazu@google.com>
Mon, 5 Jun 2023 19:59:58 +0000
(12:59 -0700)
committer
Kazu Hirata
<kazu@google.com>
Mon, 5 Jun 2023 19:59:58 +0000
(12:59 -0700)
This patch fixes:
clang/lib/Sema/SemaExprCXX.cpp:5591:3: error: default label in
switch which covers all enumeration values
[-Werror,-Wcovered-switch-default]
clang/lib/Sema/SemaExprCXX.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaExprCXX.cpp
b/clang/lib/Sema/SemaExprCXX.cpp
index 30925c37dc08c8a003b521ce9491bbdd726b86c9..eeae6cda53e5b2fb2dfcad6827d3494504c86511 100644
(file)
--- a/
clang/lib/Sema/SemaExprCXX.cpp
+++ b/
clang/lib/Sema/SemaExprCXX.cpp
@@
-5588,9
+5588,6
@@
ExprResult Sema::BuildTypeTrait(TypeTrait Kind, SourceLocation KWLoc,
return TypeTraitExpr::Create(Context, Context.getLogicalOperationType(),
KWLoc, Kind, Args, RParenLoc, Result);
}
- default:
- llvm_unreachable("reached the end of BuildTypeTrait because the type "
- "trait's type is unaccounted for");
}
}