Skip to content

Commit 6b55b1e

Browse files
committed
add maybe_unused on fixme location
1 parent 445bdaf commit 6b55b1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CodeGen/CGHLSLRuntime.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,8 @@ void CGHLSLRuntime::emitEntryFunction(const FunctionDecl *FD,
725725

726726
const ParmVarDecl *PD = FD->getParamDecl(Param.getArgNo() - SRetOffset);
727727
llvm::Value *SemanticValue = nullptr;
728-
if (HLSLParamModifierAttr *MA = PD->getAttr<HLSLParamModifierAttr>()) {
728+
if ([[maybe_unused]] HLSLParamModifierAttr *MA =
729+
PD->getAttr<HLSLParamModifierAttr>()) {
729730
llvm_unreachable("Not handled yet");
730731
} else {
731732
llvm::Type *ParamType =

0 commit comments

Comments
 (0)