Skip to content

Commit ca842d2

Browse files
committed
add comment
1 parent cbf88ce commit ca842d2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clang/lib/CodeGen/CGHLSLRuntime.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,10 @@ static Value *buildVectorInput(IRBuilder<> &B, Function *F, llvm::Type *Ty) {
387387
static void addBuiltinDecoration(llvm::GlobalVariable *GV, unsigned BuiltIn) {
388388
LLVMContext &Ctx = GV->getContext();
389389
IRBuilder<> B(GV->getContext());
390-
MDNode *Operands =
391-
MDNode::get(Ctx, {ConstantAsMetadata::get(B.getInt32(11)),
392-
ConstantAsMetadata::get(B.getInt32(BuiltIn))});
390+
MDNode *Operands = MDNode::get(
391+
Ctx,
392+
{ConstantAsMetadata::get(B.getInt32(/* Spirv::Decoration::BuiltIn */ 11)),
393+
ConstantAsMetadata::get(B.getInt32(BuiltIn))});
393394
MDNode *Decoration = MDNode::get(Ctx, {Operands});
394395
GV->addMetadata("spirv.Decorations", *Decoration);
395396
}

0 commit comments

Comments
 (0)