Skip to content

Commit 77da90b

Browse files
authored
[SYCL][NFC] Code clean up (phase 5) revealed by self build. (#2907)
1 parent 56c4c38 commit 77da90b

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,6 @@ class SYCLIntegrationHeader {
410410
/// integration header emission time.
411411
llvm::SmallVector<SpecConstID, 4> SpecConsts;
412412

413-
/// Used for emitting diagnostics.
414-
DiagnosticsEngine &Diag;
415-
416413
/// Whether header is generated with unnamed lambda support
417414
bool UnnamedLambdaSupport;
418415

clang/lib/Driver/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5116,7 +5116,7 @@ void Driver::BuildActions(Compilation &C, DerivedArgList &Args,
51165116
OffloadBuilder.addDeviceDependencesToHostAction(
51175117
Current, InputArg, phases::Link, PL.back(), PL);
51185118
};
5119-
for (const StringRef &LA : LinkArgs) {
5119+
for (StringRef LA : LinkArgs) {
51205120
// At this point, we will process the archives for FPGA AOCO and individual
51215121
// archive unbundling for Windows.
51225122
if (!isStaticArchiveFile(LA))

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3988,7 +3988,7 @@ void SYCLIntegrationHeader::setCallsThisItem(bool B) {
39883988
SYCLIntegrationHeader::SYCLIntegrationHeader(DiagnosticsEngine &_Diag,
39893989
bool _UnnamedLambdaSupport,
39903990
Sema &_S)
3991-
: Diag(_Diag), UnnamedLambdaSupport(_UnnamedLambdaSupport), S(_S) {}
3991+
: UnnamedLambdaSupport(_UnnamedLambdaSupport), S(_S) {}
39923992

39933993
// -----------------------------------------------------------------------------
39943994
// Utility class methods

0 commit comments

Comments
 (0)