Skip to content

Commit 110dcc9

Browse files
[CT] Clean up, for rebase
1 parent 6dcb509 commit 110dcc9

File tree

3 files changed

+5
-1024
lines changed

3 files changed

+5
-1024
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,7 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID,
35283528
if ((AIsInteger && BIsInteger) || (AIsFloating && BIsFloating)) {
35293529
// Both are in the same category, allow usual arithmetic conversions
35303530
ResultTy = UsualArithmeticConversions(
3531-
ARes, BRes, TheCall->getBeginLoc(), ACK_Conditional);
3531+
ARes, BRes, TheCall->getBeginLoc(), ArithConvKind::Conditional);
35323532
if (ARes.isInvalid() || BRes.isInvalid() || ResultTy.isNull()) {
35333533
return Diag(A->getBeginLoc(),
35343534
diag::err_typecheck_cond_incompatible_operands)

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4119,9 +4119,6 @@ SDValue DAGCombiner::visitSUB(SDNode *N) {
41194119
unsigned BitWidth = VT.getScalarSizeInBits();
41204120
SDLoc DL(N);
41214121

4122-
if (N->getFlags().hasNoCtSelectOpt())
4123-
return SDValue();
4124-
41254122
if (SDValue V = foldSubCtlzNot<EmptyMatchContext>(N, DAG))
41264123
return V;
41274124

0 commit comments

Comments
 (0)