Skip to content

Commit 1a435fe

Browse files
authored
[HLSL] Fix build warning after #116331 (#121852)
After #116331 is always SpellingNotCalculated, so I assume doing nothing is expected.
1 parent f9369cc commit 1a435fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/lib/CodeGen/CodeGenFunction.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2102,7 +2102,10 @@ void CodeGenFunction::EmitBranchOnBoolExpr(
21022102
MDHelper.createConstant(BranchHintConstant)});
21032103
BrInst->setMetadata("hlsl.controlflow.hint",
21042104
llvm::MDNode::get(CGM.getLLVMContext(), Vals));
2105-
} break;
2105+
break;
2106+
}
2107+
case HLSLControlFlowHintAttr::SpellingNotCalculated:
2108+
break;
21062109
}
21072110
}
21082111

0 commit comments

Comments
 (0)