File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments