aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2025-01-06 14:50:57 -0800
committerGitHub <noreply@github.com>2025-01-06 14:50:57 -0800
commit1a435feffcd85c1e7fe30daf1a3995e95860b300 (patch)
treee3e6a73579f26893ad791fccdb720179d208ee40 /clang/lib/CodeGen/CodeGenFunction.cpp
parentf9369cc602272796c15de1065a782f812e791df3 (diff)
downloadllvm-1a435feffcd85c1e7fe30daf1a3995e95860b300.zip
llvm-1a435feffcd85c1e7fe30daf1a3995e95860b300.tar.gz
llvm-1a435feffcd85c1e7fe30daf1a3995e95860b300.tar.bz2
[HLSL] Fix build warning after #116331 (#121852)
After #116331 is always SpellingNotCalculated, so I assume doing nothing is expected.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 56c56f5..067ff55 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;
}
}