This is an archive of the discontinued LLVM Phabricator instance.

[clang] prevent crash for nonnull attribut in constant context (Bug 43601)
ClosedPublic

Authored by Tyker on Oct 9 2019, 10:53 AM.

Diff Detail

Event Timeline

Tyker created this revision.Oct 9 2019, 10:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 9 2019, 10:53 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
rnk accepted this revision.Oct 9 2019, 1:06 PM

lgtm, thanks.

clang/lib/AST/ExprConstant.cpp
5444–5445

As an unrelated, optional suggestion, given how common I-Args.begin() is, it seems like it would be simpler to do the usual index iteration pattern here.

This revision is now accepted and ready to land.Oct 9 2019, 1:06 PM
Tyker updated this revision to Diff 224169.Oct 9 2019, 2:37 PM
This revision was automatically updated to reflect the committed changes.