This is an archive of the discontinued LLVM Phabricator instance.

[clang] Fix the incorrect dependence bits for DependentExtIntType.
ClosedPublic

Authored by hokein on Jul 2 2020, 11:34 PM.

Details

Summary

The error-bit was missing, and the unexpandedpack bit seemed to be
set incorrectly.

Diff Detail

Event Timeline

hokein created this revision.Jul 2 2020, 11:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 2 2020, 11:34 PM
sammccall accepted this revision.Jul 3 2020, 1:27 AM
sammccall added a subscriber: erichkeane.

Existing logic is odd. Error propagation change is definitely correct, and I suspect the other change is too, but let's ask just in case.

(The whole DependentIntExtType landed after the dependence refactoring, so this wasn't something we mangled in the refactoring)

clang/lib/AST/Type.cpp
356

@erichkeane was there any intent behind translating "num bits contains unexpanded pack" into "extint is variably modified", or was this an oversight? (My guess is the latter, just want to double check)

This revision is now accepted and ready to land.Jul 3 2020, 1:27 AM
erichkeane accepted this revision.Jul 6 2020, 5:59 AM
erichkeane added inline comments.
clang/lib/AST/Type.cpp
356

Ah, I think this was a result of a messy/not completely understood rebase. The 'toTypeDependence' parts appeared in the middle of my review, so I must have just merged the change incorrectly.

This patch seems like the right thing. Thanks!

This revision was automatically updated to reflect the committed changes.