Skip to content

Commit 3e655e8

Browse files
author
joaosaffran
committed
formating
1 parent 015dbf5 commit 3e655e8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

clang/lib/CodeGen/CGStmt.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2276,16 +2276,15 @@ void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) {
22762276
// failure.
22772277
llvm::BasicBlock *DefaultBlock = createBasicBlock("sw.default");
22782278
SwitchInsn = Builder.CreateSwitch(CondV, DefaultBlock);
2279-
if(HLSLControlFlowAttr != HLSLControlFlowHintAttr::SpellingNotCalculated) {
2279+
if (HLSLControlFlowAttr != HLSLControlFlowHintAttr::SpellingNotCalculated) {
22802280
llvm::MDBuilder MDHelper(CGM.getLLVMContext());
22812281
llvm::ConstantInt *BranchHintConstant =
22822282
HLSLControlFlowAttr ==
22832283
HLSLControlFlowHintAttr::Spelling::Microsoft_branch
22842284
? llvm::ConstantInt::get(CGM.Int32Ty, 1)
22852285
: llvm::ConstantInt::get(CGM.Int32Ty, 2);
2286-
llvm::Metadata * Vals[] =
2287-
{MDHelper.createString("hlsl.controlflow.hint"),
2288-
MDHelper.createConstant(BranchHintConstant)};
2286+
llvm::Metadata *Vals[] = {MDHelper.createString("hlsl.controlflow.hint"),
2287+
MDHelper.createConstant(BranchHintConstant)};
22892288
SwitchInsn->setMetadata("hlsl.controlflow.hint",
22902289
llvm::MDNode::get(CGM.getLLVMContext(), Vals));
22912290
}

0 commit comments

Comments
 (0)