This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Fix record initialization via CallExpr subclasses
ClosedPublic

Authored by tbaeder on Jan 14 2023, 10:36 AM.

Details

Summary
We can't just use VisitCallExpr() here, as that doesn't handle CallExpr
subclasses such as CXXMemberCallExpr.

I think the patch itself is mostly obvious, but I was wondering if it is the right time to add such RUN lines to existing test cases like I do here for test/SemaCXX/constexpr-nqueens.cpp.

Diff Detail

Event Timeline

tbaeder created this revision.Jan 14 2023, 10:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 14 2023, 10:36 AM
tbaeder requested review of this revision.Jan 14 2023, 10:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 14 2023, 10:36 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Jan 18 2023, 10:16 AM

I think the patch itself is mostly obvious, but I was wondering if it is the right time to add such RUN lines to existing test cases like I do here for test/SemaCXX/constexpr-nqueens.cpp.

If the tests are (mostly) passing without a bunch of FIXME comments, then yes, I think it's a great step to start running more of these tests with both constant expression engines.

LGTM!

This revision is now accepted and ready to land.Jan 18 2023, 10:16 AM
This revision was landed with ongoing or failed builds.Mar 31 2023, 4:17 AM
This revision was automatically updated to reflect the committed changes.