[clang] [HLSL] Fix build warning after #116331 (PR #121852)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 6 14:49:06 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-codegen
@llvm/pr-subscribers-clang
Author: Vitaly Buka (vitalybuka)
<details>
<summary>Changes</summary>
After #<!-- -->116331 is always SpellingNotCalculated,
so I assume doing nothing is expected.
---
Full diff: https://github.com/llvm/llvm-project/pull/121852.diff
1 Files Affected:
- (modified) clang/lib/CodeGen/CodeGenFunction.cpp (+4-1)
``````````diff
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 56c56f564fd09d..067ff55b87ae63 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -2102,7 +2102,10 @@ void CodeGenFunction::EmitBranchOnBoolExpr(
MDHelper.createConstant(BranchHintConstant)});
BrInst->setMetadata("hlsl.controlflow.hint",
llvm::MDNode::get(CGM.getLLVMContext(), Vals));
- } break;
+ break;
+ }
+ case HLSLControlFlowHintAttr::SpellingNotCalculated:
+ break;
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/121852
More information about the cfe-commits
mailing list