Skip to content

Commit 4ced38b

Browse files
Fix build fail -- remove IntrusiveRefCnPtr to match llorg (#566)
Fixes build failure. See github.com/llvm/llvm-project/commit/13e1a2cb2246dc5e9a4afcdacabed4d43154ec3f for patch that introduce the failure
1 parent 740e2cc commit 4ced38b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

opencl_clang.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,12 @@ Compile(const char *pszProgramSource, const char **pInputHeaders,
213213
// Prepare our diagnostic client.
214214
llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> DiagID(
215215
new clang::DiagnosticIDs());
216-
llvm::IntrusiveRefCntPtr<clang::DiagnosticOptions> DiagOpts(
217-
new clang::DiagnosticOptions());
218-
DiagOpts->ShowPresumedLoc = true;
216+
clang::DiagnosticOptions DiagOpts;
217+
DiagOpts.ShowPresumedLoc = true;
219218
clang::TextDiagnosticPrinter *DiagsPrinter =
220-
new clang::TextDiagnosticPrinter(err_ostream, &*DiagOpts);
219+
new clang::TextDiagnosticPrinter(err_ostream, DiagOpts);
221220
llvm::IntrusiveRefCntPtr<clang::DiagnosticsEngine> Diags(
222-
new clang::DiagnosticsEngine(DiagID, &*DiagOpts, DiagsPrinter));
221+
new clang::DiagnosticsEngine(DiagID, DiagOpts, DiagsPrinter));
223222

224223
// Prepare output buffer
225224
std::unique_ptr<llvm::raw_pwrite_stream>

0 commit comments

Comments
 (0)