The flag -reverse-iterate is present only on +Asserts builds.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
This fixes the buildbot failure seen here: http://lab.llvm.org:8011/builders/clang-with-thin-lto-ubuntu/builds/3376/steps/test-stage1-compiler/logs/stdio
Because -reverse-iterate is only defined when LLVM_ENABLE_ABI_BREAKING_CHECKS is enabled.
Looks fine, but please fix the commit message to note that -reverse-iterate only exists in +Asserts builds.
Yes, you can add REQUIRES: asserts (and make sure it actually works).
See test/Transforms/LoopRotate/oz-disable.ll for an example.
Split -reverse-iterate tests and guarded them with REQUIRES: asserts.
I validated the tests with Release as well as Release+Asserts builds.
Would there be any cases with ABI_BREAKING_CHECKS enabled but ENABLE_ASSERTIONS=OFF?
I could introduce a new feature "REQUIRES: abi-breaking-checks"
@chapuni Currently, I see that ABI_BREAKING_CHECKS is turned OFF only if it is explicitly set to FORCE_OFF. Otherwise, it is enabled if ASSERTS are enabled (in cmake/modules/HandleLLVMOptions.cmake).
I am not sure if there is some buildbot which explicitly turns ABI_BREAKING off.
Introducing REQUIRES: abi-breaking-checks is a good idea though.
ATM, "REQUIRES: asserts" will satisfy our usual cases.
Ping me if we require the feature "abi-breaking-checks".