This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Fix Analysis/Presburger/Utils.cpp compilation with GCC 11
ClosedPublic

Authored by ro on Aug 3 2022, 2:11 AM.

Details

Summary

As reported in Issue #56850, mlir/lib/Analysis/Presburger/Utils.cpp doesn't compile on Solaris 11.4/SPARC with the bundled GCC 11, as seen when testing LLVM 15.0.0 rc1:

/var/llvm/reltest/llvm-15.0.0-rc1/rc1/llvm-project/mlir/include/mlir/Analysis/Presburger/MPInt.h:260:47: error: inlining failed in call to ‘always_inline’ ‘int64_t mlir::presburger::int64FromMPInt(const mlir::presburger::MPInt&)’: indirect function call with a yet undetermined callee

This patch hacks around this and allowed the build to finish.

Tested on sparcv9-sun-solaris2.11.

Diff Detail

Event Timeline

ro created this revision.Aug 3 2022, 2:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2022, 2:11 AM
ro requested review of this revision.Aug 3 2022, 2:11 AM
arjunp accepted this revision.Aug 3 2022, 2:30 AM

Please clang-format before landing.

This revision is now accepted and ready to land.Aug 3 2022, 2:30 AM
This revision was landed with ongoing or failed builds.Aug 3 2022, 2:49 AM
This revision was automatically updated to reflect the committed changes.