This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Change ABI breaking use of NDEBUG to LLVM_ENABLE_ABI_BREAKING_CHECKS in DebugActions.h
ClosedPublic

Authored by zero9178 on Nov 3 2021, 1:02 AM.

Details

Summary

A quick grep for NDEBUG in MLIR revealed a use in DebugActions.h that breaks ABI. This patch changes the use of NDEBUG to LLVM_ENABLE_ABI_BREAKING_CHECKS which has the advantage of being independent of whether clients build their own app in debug or release as it is purely dependant on how MLIR itself was built.

Same case has previously been discussed for a different piece of code here: https://reviews.llvm.org/D107227

Diff Detail

Event Timeline

zero9178 created this revision.Nov 3 2021, 1:02 AM
zero9178 requested review of this revision.Nov 3 2021, 1:02 AM
mehdi_amini accepted this revision.Nov 3 2021, 11:01 AM

Thanks!

This revision is now accepted and ready to land.Nov 3 2021, 11:01 AM

nice thanks