Skip to content

Commit 34c9646

Browse files
committed
clang format
1 parent 3d99b53 commit 34c9646

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

clang/lib/CodeGen/CGHLSLRuntime.cpp

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

78-
ConstantAsMetadata *Version =
79-
ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt32Ty(Ctx), llvm::to_underlying(RootSigVer)));
78+
ConstantAsMetadata *Version = ConstantAsMetadata::get(ConstantInt::get(
79+
llvm::Type::getInt32Ty(Ctx), llvm::to_underlying(RootSigVer)));
8080
MDNode *MDVals =
81-
MDNode::get(Ctx, {ValueAsMetadata::get(Fn), RootSignature, Version});
81+
MDNode::get(Ctx, {ValueAsMetadata::get(Fn), RootSignature, Version});
8282

8383
StringRef RootSignatureValKey = "dx.rootsignatures";
8484
auto *RootSignatureValMD = M.getOrInsertNamedMetadata(RootSignatureValKey);

clang/lib/Driver/ToolChains/HLSL.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ HLSLToolChain::TranslateArgs(const DerivedArgList &Args, StringRef BoundArch,
297297
}
298298
if (A->getOption().getID() == options::OPT_dxc_rootsig_ver ||
299299
A->getOption().getID() == options::OPT_dxc_rootsig_ver_) {
300-
DAL->AddJoinedArg(nullptr,
301-
Opts.getOption(options::OPT_fdx_rootsig_ver),
300+
DAL->AddJoinedArg(nullptr, Opts.getOption(options::OPT_fdx_rootsig_ver),
302301
A->getValue());
303302
A->claim();
304303
continue;

0 commit comments

Comments
 (0)