This is an archive of the discontinued LLVM Phabricator instance.

[CGDebugInfo] return early on failed dyn_cast
AbandonedPublic

Authored by nickdesaulniers on May 21 2019, 8:04 PM.

Details

Reviewers
rsmith
dblaikie
Summary

This was flagged in https://www.viva64.com/en/b/0629/ under "Snippet No.
39".

I looked at making CGDebugInfo::getFunctionFwdDeclOrStub take a
FunctionDecl as its first argument, but this quickly became untenable.

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMay 21 2019, 8:04 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Also of note is that no existing test covers this case.

Looks like this may've already been addressed in cfee2efc57b27ce7eed932528e219a99f934d3ca ?

nickdesaulniers abandoned this revision.May 29 2020, 3:42 PM

Heh, @RKSimon and I were going through fixing up warnings noted in that blog.