Instead of enabling it for non NDEBUG builds, use -verify-cfiinstrs to
run verifier in CFIInstrInserter. It defaults to false.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
If you are referring to the llvm.trap() issue, that will be part of a separate patch and a test case.
There appears to be an issue with inconsistent incoming offsets for 'noreturn' basic blocks.
But also makes sense to have a test case that uses the option and triggers the failure.
Will do that.
Comment Actions
Instead of adding a new flag, would it be possible to make this part of the machine verifier? (-verify-machineinstrs)
Comment Actions
Good idea to try to merge it into Machine Verifier later. Right now, we need to make it optional so it does not break anyone's code.