Skip to content

Commit 8cec5aa

Browse files
committed
review: alias std::array
1 parent fd8b27c commit 8cec5aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/lib/Target/DirectX/DXILTranslateMetadata.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,9 @@ static void translateBranchMetadata(Module &M, Instruction *BBTerminatorInst) {
294294
BBTerminatorInst->setMetadata("hlsl.controlflow.hint", nullptr);
295295
}
296296

297-
static std::array<unsigned, 7> getCompatibleInstructionMDs(llvm::Module &M) {
297+
using InstructionMDList = std::array<unsigned, 7>;
298+
299+
static InstructionMDList getCompatibleInstructionMDs(llvm::Module &M) {
298300
return {
299301
M.getMDKindID("dx.nonuniform"), M.getMDKindID("dx.controlflow.hints"),
300302
M.getMDKindID("dx.precise"), llvm::LLVMContext::MD_range,
@@ -304,7 +306,7 @@ static std::array<unsigned, 7> getCompatibleInstructionMDs(llvm::Module &M) {
304306

305307
static void translateInstructionMetadata(Module &M) {
306308
// construct allowlist of valid metadata node kinds
307-
std::array<unsigned, 7> DXILCompatibleMDs = getCompatibleInstructionMDs(M);
309+
InstructionMDList DXILCompatibleMDs = getCompatibleInstructionMDs(M);
308310

309311
for (Function &F : M) {
310312
for (BasicBlock &BB : F) {

0 commit comments

Comments
 (0)