This is an archive of the discontinued LLVM Phabricator instance.

[Analyzer] Try fixing ConstraintManager::assumeDual
AbandonedPublic

Authored by MaskRay on Oct 3 2018, 4:43 PM.

Details

Summary

This fixes test/Analysis/trustnonnullchecker_test.m in Debug mode.

Diff Detail

Event Timeline

MaskRay created this revision.Oct 3 2018, 4:43 PM
NoQ added a comment.Oct 3 2018, 4:47 PM

This should have been fixed by D52848.

This is a very important fundamental assertion, we definitely should not remove it.

In D52853#1254486, @NoQ wrote:

This should have been fixed by D52848.

This is a very important fundamental assertion, we definitely should not remove it.

Sorry I don't understand the code at all but I get a different result.

~/llvm/Debug/bin/llvm-lit test/Analysis/trustnonnullchecker_test.m => assert() fails

Reverting D52848 (rC343735) seems to unbreak the test...

NoQ added a comment.Oct 3 2018, 4:54 PM

Hmm, wait, right, i might have an idea of what's going on. I think we need to revert.

NoQ added a comment.Oct 3 2018, 4:58 PM

And, of course, we'll need to change __OPTIMIZE__ to NDEBUG.

Also thanks for reporting the problem!

NoQ added a comment.Oct 3 2018, 5:06 PM

*reads the comments* no, NDEBUG won't work.

Ok, we'll take care of this, thanks!

Tracked in rdar://44992170.
Marking the test as unsupported for now.

MaskRay abandoned this revision.Oct 3 2018, 5:17 PM

Thanks for your prompt response rC343747 . I'll abandon this revision!