diff --git a/source/slang/slang-diagnostic-defs.h b/source/slang/slang-diagnostic-defs.h index e82164b717..6fc31af480 100644 --- a/source/slang/slang-diagnostic-defs.h +++ b/source/slang/slang-diagnostic-defs.h @@ -2255,7 +2255,8 @@ DIAGNOSTIC( 41403, Error, invalidAtomicDestinationPointer, - "cannot perform atomic operation because destination is neither groupshared nor from a device buffer.") + "cannot perform atomic operation because destination is neither groupshared nor from a device " + "buffer.") // // 5xxxx - Target code generation. diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 290313390f..5a56be7710 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -1322,7 +1322,8 @@ Result linkAndOptimizeIR( byteAddressBufferOptions); } - // For SPIR-V, this function is called elsewhere, so that it can happen after address space specialization + // For SPIR-V, this function is called elsewhere, so that it can happen after address space + // specialization if (target != CodeGenTarget::SPIRV && target != CodeGenTarget::SPIRVAssembly) validateAtomicOperations(sink, irModule->getModuleInst()); diff --git a/source/slang/slang-ir-validate.cpp b/source/slang/slang-ir-validate.cpp index 32c740fe4c..6ed1cb806a 100644 --- a/source/slang/slang-ir-validate.cpp +++ b/source/slang/slang-ir-validate.cpp @@ -467,7 +467,7 @@ void validateAtomicOperations(DiagnosticSink* sink, IRInst* inst) { // There may be unused functions containing violations after address space specialization. if (auto func = as(inst)) - if(!(func->hasUses() || func->findDecoration())) + if (!(func->hasUses() || func->findDecoration())) return; switch (inst->getOp())