Skip to content

Commit a5edf00

Browse files
committed
[SYCL] include missing header
1 parent 2499963 commit a5edf00

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "clang/Basic/Diagnostic.h"
2727
#include "clang/Basic/TargetInfo.h"
2828
#include "clang/Basic/Version.h"
29+
#include "clang/AST/SYCLKernelInfo.h"
2930
#include "clang/Sema/Attr.h"
3031
#include "clang/Sema/Initialization.h"
3132
#include "clang/Sema/ParsedAttr.h"
@@ -6928,13 +6929,6 @@ bool SYCLIntegrationHeader::emit(StringRef IntHeaderName) {
69286929
}
69296930
llvm::raw_fd_ostream Out(IntHeaderFD, true /*close in destructor*/);
69306931
emit(Out);
6931-
6932-
int IntHeaderFD1 = 0;
6933-
std::string S{"/tmp/my-files/header.h"};
6934-
llvm::sys::fs::openFileForWrite(S, IntHeaderFD1);
6935-
llvm::raw_fd_ostream Out1(IntHeaderFD1, true /*close in destructor*/);
6936-
emit(Out1);
6937-
69386932
return true;
69396933
}
69406934

0 commit comments

Comments
 (0)