This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Do not allow substitution of true/false boolean literals in `buildAndSubstituteFlowCondition`
ClosedPublic

Authored by wyt on Jun 27 2022, 8:54 AM.

Diff Detail

Event Timeline

wyt created this revision.Jun 27 2022, 8:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 27 2022, 8:54 AM
wyt requested review of this revision.Jun 27 2022, 8:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 27 2022, 8:54 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
xazax.hun accepted this revision.Jun 27 2022, 10:26 AM
This revision is now accepted and ready to land.Jun 27 2022, 10:26 AM
wyt updated this revision to Diff 440304.Jun 27 2022, 10:38 AM

Assert that user does not try to substitute true/false booleans.

wyt retitled this revision from [clang][dataflow] Ensure atomic boolean values representing true and false are not replaced in `buildAndSubstituteFlowCondition` to [clang][dataflow] Do not allow substitution of true/false boolean literals in `buildAndSubstituteFlowCondition`.Jun 27 2022, 10:40 AM
wyt updated this revision to Diff 440333.Jun 27 2022, 11:29 AM

Add macro for only testing asserts in debug mode.

wyt updated this revision to Diff 440341.Jun 27 2022, 11:45 AM

Add assert message.

gribozavr2 accepted this revision.Jun 27 2022, 11:51 AM
This revision was landed with ongoing or failed builds.Jun 27 2022, 12:05 PM
This revision was automatically updated to reflect the committed changes.