Skip to content

Commit 3d99b53

Browse files
committed
fix resolve conflicts
this is what I get for trying to use the github ui for conflicts
1 parent 6af81bb commit 3d99b53

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

clang/lib/CodeGen/CGHLSLRuntime.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,10 @@ void addRootSignature(llvm::dxbc::RootSignatureVersion RootSigVer,
7575
llvm::hlsl::rootsig::MetadataBuilder RSBuilder(Ctx, Elements);
7676
MDNode *RootSignature = RSBuilder.BuildRootSignature();
7777

78-
Metadata *Operands[] = {
79-
ValueAsMetadata::get(Fn),
80-
RootSignature,
81-
ConstantAsMetadata::get(
82-
Builder.getInt32(llvm::to_underlying(RootSigVer))),
83-
};
84-
MDNode *FnPairing = MDNode::get(Ctx, Operands);
78+
ConstantAsMetadata *Version =
79+
ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt32Ty(Ctx), llvm::to_underlying(RootSigVer)));
80+
MDNode *MDVals =
81+
MDNode::get(Ctx, {ValueAsMetadata::get(Fn), RootSignature, Version});
8582

8683
StringRef RootSignatureValKey = "dx.rootsignatures";
8784
auto *RootSignatureValMD = M.getOrInsertNamedMetadata(RootSignatureValKey);

0 commit comments

Comments
 (0)