Skip to content

Commit 9586117

Browse files
[clang-sycl-linker] Fix a warning
This patch fixes: clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:127:13: error: function 'getMainExecutable' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
1 parent 44b87e4 commit 9586117

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,6 @@ const OptTable &getOptTable() {
124124
exit(EXIT_FAILURE);
125125
}
126126

127-
std::string getMainExecutable(const char *Name) {
128-
void *Ptr = (void *)(intptr_t)&getMainExecutable;
129-
auto COWPath = sys::fs::getMainExecutable(Name, Ptr);
130-
return sys::path::parent_path(COWPath).str();
131-
}
132-
133127
Expected<StringRef> createTempFile(const ArgList &Args, const Twine &Prefix,
134128
StringRef Extension) {
135129
SmallString<128> OutputFile;

0 commit comments

Comments
 (0)