This is an archive of the discontinued LLVM Phabricator instance.

[Sema] Fix uninitialized OverloadCandidate::FoundDecl member
AbandonedPublic

Authored by jkorous on Aug 31 2018, 8:16 AM.

Details

Summary

It's rather error-prone to leave that member variable uninitialized. The DeclAccessPair seems to be intentionally POD and it seems the make() method is supposed to be called as a constructor.

I take DeclAccessPair interface as given so the only options are to either change OverloadCandidate interface or actually initialize the member variable it to some sane default. I suggest the easiest option.

Diff Detail

Repository
rC Clang

Event Timeline

jkorous created this revision.Aug 31 2018, 8:16 AM
jkorous abandoned this revision.Nov 16 2018, 3:09 AM