Skip to content

Commit 0b4cde1

Browse files
committed
Fixed the warnings on clang
1 parent e7ebc9b commit 0b4cde1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

llvm/lib/Target/DirectX/DXILOpLowering.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ class OpLowerer {
134134
case ArgSelect::Type::I32:
135135
Args.push_back(OpBuilder.getIRB().getInt32(A.Value));
136136
break;
137-
default:
138-
llvm_unreachable("Invalid type of intrinsic arg select.");
139137
}
140138
}
141139
} else if (IsVectorArgExpansion) {

llvm/utils/TableGen/DXILEmitter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,9 @@ static void emitDXILIntrinsicMap(ArrayRef<DXILOperationDesc> Ops,
459459
}
460460
for (const DXILIntrinsicSelect &MappedIntr : Op.IntrinsicSelects) {
461461
OS << "DXIL_OP_INTRINSIC(dxil::OpCode::" << Op.OpName
462-
<< ", Intrinsic::" << MappedIntr.Intrinsic;
462+
<< ", Intrinsic::" << MappedIntr.Intrinsic << ", ";
463463
for (const DXILArgSelect &ArgSelect : MappedIntr.Args) {
464-
OS << ", (ArgSelect { ";
464+
OS << "(ArgSelect { ";
465465
switch (ArgSelect.Type) {
466466
case DXILArgSelect::Type::Index:
467467
OS << "ArgSelect::Type::Index, ";
@@ -473,7 +473,7 @@ static void emitDXILIntrinsicMap(ArrayRef<DXILOperationDesc> Ops,
473473
OS << "ArgSelect::Type::I32, ";
474474
break;
475475
}
476-
OS << ArgSelect.Value << "})";
476+
OS << ArgSelect.Value << "}), ";
477477
}
478478
OS << ")\n";
479479
}

0 commit comments

Comments
 (0)