Skip to content

Commit 94ee3cd

Browse files
alsepkowCopilot
andauthored
[NFC][offloader] Mark run() definition static to match its declaration (#1250)
Minor nit: `run()` in `tools/offloader/offloader.cpp` is forward-declared `static` but the definition omits the specifier. Adding it matches the other two helpers in this file and the readability rationale in the [LLVM Coding Standards](https://llvm.org/docs/CodingStandards.html#restrict-visibility). NFC. Assisted by Claude Opus 4.7. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a2e657a commit 94ee3cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/offloader/offloader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static bool matchesRegexIgnoreCase(StringRef GPUDescription,
9696
return R.isValid() && R.match(GPUDescription);
9797
}
9898

99-
int run() {
99+
static int run() {
100100
const ExitOnError ExitOnErr("gpu-exec: error: ");
101101
const DeviceConfig Config = {Debug, Validation};
102102
auto DevicesOrErr = initializeDevices(Config);

0 commit comments

Comments
 (0)