Skip to content

Commit 0a1e8a6

Browse files
committed
Work around clang-format bugs
1 parent 48a304a commit 0a1e8a6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,8 +1912,8 @@ void DAGCombiner::Run(CombineLevel AtLevel) {
19121912
}
19131913

19141914
SDValue DAGCombiner::visit(SDNode *N) {
1915+
// clang-format off
19151916
switch (N->getOpcode()) {
1916-
// clang-format off
19171917
default: break;
19181918
case ISD::TokenFactor: return visitTokenFactor(N);
19191919
case ISD::MERGE_VALUES: return visitMERGE_VALUES(N);
@@ -2068,8 +2068,8 @@ SDValue DAGCombiner::visit(SDNode *N) {
20682068
#define BEGIN_REGISTER_VP_SDNODE(SDOPC, ...) case ISD::SDOPC:
20692069
#include "llvm/IR/VPIntrinsics.def"
20702070
return visitVPOp(N);
2071-
// clang-format on
20722071
}
2072+
// clang-format on
20732073
return SDValue();
20742074
}
20752075

llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2198,6 +2198,7 @@ bool DAGTypeLegalizer::PromoteFloatOperand(SDNode *N, unsigned OpNo) {
21982198
// to use the promoted float operand. Nodes that produce at least one
21992199
// promotion-requiring floating point result have their operands legalized as
22002200
// a part of PromoteFloatResult.
2201+
// clang-format off
22012202
switch (N->getOpcode()) {
22022203
default:
22032204
#ifndef NDEBUG
@@ -2206,7 +2207,6 @@ bool DAGTypeLegalizer::PromoteFloatOperand(SDNode *N, unsigned OpNo) {
22062207
#endif
22072208
report_fatal_error("Do not know how to promote this operator's operand!");
22082209

2209-
// clang-format off
22102210
case ISD::BITCAST: R = PromoteFloatOp_BITCAST(N, OpNo); break;
22112211
case ISD::FCOPYSIGN: R = PromoteFloatOp_FCOPYSIGN(N, OpNo); break;
22122212
case ISD::FP_TO_SINT:
@@ -2220,8 +2220,8 @@ bool DAGTypeLegalizer::PromoteFloatOperand(SDNode *N, unsigned OpNo) {
22202220
case ISD::SELECT_CC: R = PromoteFloatOp_SELECT_CC(N, OpNo); break;
22212221
case ISD::SETCC: R = PromoteFloatOp_SETCC(N, OpNo); break;
22222222
case ISD::STORE: R = PromoteFloatOp_STORE(N, OpNo); break;
2223-
// clang-format on
22242223
}
2224+
// clang-format on
22252225

22262226
if (R.getNode())
22272227
ReplaceValueWith(SDValue(N, 0), R);

0 commit comments

Comments
 (0)