[clang] 07028ac - Silence a "not all control paths return a value" warning; NFC
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 6 09:48:54 PDT 2023
Author: Aaron Ballman
Date: 2023-06-06T12:48:22-04:00
New Revision: 07028acacfd2b5dd6633814db690e5de8e37b40d
URL: https://github.com/llvm/llvm-project/commit/07028acacfd2b5dd6633814db690e5de8e37b40d
DIFF: https://github.com/llvm/llvm-project/commit/07028acacfd2b5dd6633814db690e5de8e37b40d.diff
LOG: Silence a "not all control paths return a value" warning; NFC
Added:
Modified:
clang/lib/Sema/SemaExprCXX.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index eeae6cda53e5b..ba11f883add77 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -5589,6 +5589,7 @@ ExprResult Sema::BuildTypeTrait(TypeTrait Kind, SourceLocation KWLoc,
KWLoc, Kind, Args, RParenLoc, Result);
}
}
+ llvm_unreachable("unhandled type trait return type");
}
ExprResult Sema::ActOnTypeTrait(TypeTrait Kind, SourceLocation KWLoc,
More information about the cfe-commits
mailing list