Skip to content

Commit a0486c1

Browse files
committed
add comment
1 parent 4116522 commit a0486c1

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
@@ -629,7 +629,8 @@ void CGHLSLRuntime::handleGlobalVarDefinition(const VarDecl *VD,
629629
LLVMContext &Ctx = GV->getContext();
630630
IRBuilder<> B(GV->getContext());
631631
MDNode *Operands = MDNode::get(
632-
Ctx, {ConstantAsMetadata::get(B.getInt32(11)),
632+
Ctx, {ConstantAsMetadata::get(
633+
B.getInt32(/* Spirv::Decoration::BuiltIn */ 11)),
633634
ConstantAsMetadata::get(B.getInt32(Attr->getBuiltIn()))});
634635
MDNode *Decoration = MDNode::get(Ctx, {Operands});
635636
GV->addMetadata("spirv.Decorations", *Decoration);

0 commit comments

Comments
 (0)