Skip to content

Commit bd54af8

Browse files
committed
[SYCL][NFC] Fix compiler warning about initialization order.
Signed-off-by: Alexey Bader <[email protected]>
1 parent 6cc4701 commit bd54af8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

clang/lib/CodeGen/CGLoopInfo.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -446,13 +446,12 @@ MDNode *LoopInfo::createMetadata(
446446

447447
LoopAttributes::LoopAttributes(bool IsParallel)
448448
: IsParallel(IsParallel), VectorizeEnable(LoopAttributes::Unspecified),
449-
SYCLIVDepEnable(false), SYCLIVDepSafelen(0), SYCLIInterval(0),
450-
SYCLMaxConcurrencyNThreads(0),
451449
UnrollEnable(LoopAttributes::Unspecified),
452450
UnrollAndJamEnable(LoopAttributes::Unspecified), VectorizeWidth(0),
453-
InterleaveCount(0), UnrollCount(0), UnrollAndJamCount(0),
454-
DistributeEnable(LoopAttributes::Unspecified), PipelineDisabled(false),
455-
PipelineInitiationInterval(0) {}
451+
InterleaveCount(0), SYCLIVDepEnable(false), SYCLIVDepSafelen(0),
452+
SYCLIInterval(0), SYCLMaxConcurrencyNThreads(0), UnrollCount(0),
453+
UnrollAndJamCount(0), DistributeEnable(LoopAttributes::Unspecified),
454+
PipelineDisabled(false), PipelineInitiationInterval(0) {}
456455

457456
void LoopAttributes::clear() {
458457
IsParallel = false;

0 commit comments

Comments
 (0)