You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[NFC][SYCL] Fix -Wreorder warning about order of initialization (#3660)
Inside LoopAttributes::LoopAttributes(bool IsParallel) in CGLoopInfo.cpp file,
SYCLIntelFPGAVariantCount is initialized after SYCLSpeculatedIterationsNIterations.
/// Value for count variant (min/max/avg) and count metadata.
llvm::SmallVector<std::pair<const char *, unsigned int>, 2>
SYCLIntelFPGAVariantCount;
This patch removes the initialization from the ctor init list to avoid a -Wreorder warning since SYCLIntelFPGAVariantCount is defined as SmallVector which default constructs just fine here.
0 commit comments