aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2023-02-02 08:59:27 -0500
committerNico Weber <thakis@chromium.org>2023-02-02 08:59:27 -0500
commitadf7ffd51ee34c3a72d3168f5aed8b946ba3d2cc (patch)
treecc1fce011cce716aae1b58a46fdcbddffa4b3462 /clang/lib/Sema/SemaChecking.cpp
parent649b14928a67e016f3e01ac46499aaf1824c2d09 (diff)
downloadllvm-adf7ffd51ee34c3a72d3168f5aed8b946ba3d2cc.zip
llvm-adf7ffd51ee34c3a72d3168f5aed8b946ba3d2cc.tar.gz
llvm-adf7ffd51ee34c3a72d3168f5aed8b946ba3d2cc.tar.bz2
Revert "[Clang] Add builtin_nondeterministic_value"
This reverts commit 4a1832a5c801a61bf4c30891aaebe63993712fd9. Test fail on (at least) macOS and Windows, see https://reviews.llvm.org/D142388#4099441
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index 2618b0c..4602284 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -2584,12 +2584,6 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID,
break;
}
- case Builtin::BI__builtin_nondeterministic_value: {
- if (SemaBuiltinNonDeterministicValue(TheCall))
- return ExprError();
- break;
- }
-
// __builtin_elementwise_abs restricts the element type to signed integers or
// floating point types only.
case Builtin::BI__builtin_elementwise_abs: {
@@ -17863,21 +17857,6 @@ bool Sema::PrepareBuiltinReduceMathOneArgCall(CallExpr *TheCall) {
return false;
}
-bool Sema::SemaBuiltinNonDeterministicValue(CallExpr *TheCall) {
- if (checkArgCount(*this, TheCall, 1))
- return true;
-
- ExprResult Arg = TheCall->getArg(0);
- QualType TyArg = Arg.get()->getType();
-
- if (!TyArg->isBuiltinType() && !TyArg->isVectorType())
- return Diag(TheCall->getArg(0)->getBeginLoc(), diag::err_builtin_invalid_arg_type)
- << 1 << /*vector, integer or floating point ty*/ 0 << TyArg;
-
- TheCall->setType(TyArg);
- return false;
-}
-
ExprResult Sema::SemaBuiltinMatrixTranspose(CallExpr *TheCall,
ExprResult CallResult) {
if (checkArgCount(*this, TheCall, 1))