This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Fix warning `missing base in copy ctor`
ClosedPublic

Authored by javedabsar on May 23 2022, 8:05 AM.

Details

Summary

This suppresse annoying warning when building mlir.

warning: base class ‘class mlir::PassWrapper<{anonymous}::TestStatisticPass,
 mlir::OperationPass<void> >’ should be explicitly initialized in the copy constructor [-Wextra]

Diff Detail

Event Timeline

javedabsar created this revision.May 23 2022, 8:05 AM
javedabsar requested review of this revision.May 23 2022, 8:05 AM
rriddle accepted this revision.May 24 2022, 12:54 AM

Thanks!

mlir/test/lib/Pass/TestPassManager.cpp
65
171
This revision is now accepted and ready to land.May 24 2022, 12:54 AM
This revision was automatically updated to reflect the committed changes.