This is an archive of the discontinued LLVM Phabricator instance.

[ASTImport]CXXBoolLiteralExpr should be handled explicitly in statement comparation
ClosedPublic

Authored by jcsxky on Sep 7 2023, 3:40 AM.

Details

Summary

In the comparation of return statement, return value(if it is CXXBoolLiteralExpr) should be handled explicitly, otherwise an incorrect result would be returned.

Diff Detail

Event Timeline

jcsxky created this revision.Sep 7 2023, 3:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 7 2023, 3:40 AM
Herald added a subscriber: martong. · View Herald Transcript
jcsxky requested review of this revision.Sep 7 2023, 3:40 AM
donat.nagy accepted this revision.Sep 7 2023, 4:18 AM

Today we learned that truth is different from falsehood...

LGTM, nice catch!

This revision is now accepted and ready to land.Sep 7 2023, 4:18 AM
steakhal added a comment.EditedSep 7 2023, 4:39 AM

Make sure the commit message complies with the guidelines.

jcsxky retitled this revision from [ASTImport]enhance statement comparing to [ASTImport]CXXBoolLiteralExpr should be handled explicitly in statement comparation.Sep 7 2023, 6:00 AM
jcsxky edited the summary of this revision. (Show Details)

Make sure the commit message complies with the guidelines.

Fix title and summary.

jcsxky added a comment.Sep 7 2023, 6:03 AM

Today we learned that truth is different from falsehood...

LGTM, nice catch!

Thanks for your quick review.

steakhal accepted this revision.Sep 7 2023, 7:08 AM
This revision was landed with ongoing or failed builds.Sep 7 2023, 11:57 PM
This revision was automatically updated to reflect the committed changes.