Skip to content

Commit a3ecf7b

Browse files
committed
format code
1 parent 82dfacf commit a3ecf7b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

source/slang/slang-diagnostic-defs.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2255,7 +2255,8 @@ DIAGNOSTIC(
22552255
41403,
22562256
Error,
22572257
invalidAtomicDestinationPointer,
2258-
"cannot perform atomic operation because destination is neither groupshared nor from a device buffer.")
2258+
"cannot perform atomic operation because destination is neither groupshared nor from a device "
2259+
"buffer.")
22592260

22602261
//
22612262
// 5xxxx - Target code generation.

source/slang/slang-emit.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,8 @@ Result linkAndOptimizeIR(
13221322
byteAddressBufferOptions);
13231323
}
13241324

1325-
// For SPIR-V, this function is called elsewhere, so that it can happen after address space specialization
1325+
// For SPIR-V, this function is called elsewhere, so that it can happen after address space
1326+
// specialization
13261327
if (target != CodeGenTarget::SPIRV && target != CodeGenTarget::SPIRVAssembly)
13271328
validateAtomicOperations(sink, irModule->getModuleInst());
13281329

source/slang/slang-ir-validate.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ void validateAtomicOperations(DiagnosticSink* sink, IRInst* inst)
467467
{
468468
// There may be unused functions containing violations after address space specialization.
469469
if (auto func = as<IRFunc>(inst))
470-
if(!(func->hasUses() || func->findDecoration<IREntryPointDecoration>()))
470+
if (!(func->hasUses() || func->findDecoration<IREntryPointDecoration>()))
471471
return;
472472

473473
switch (inst->getOp())

0 commit comments

Comments
 (0)