This is an archive of the discontinued LLVM Phabricator instance.

[Sema] Fix using old initializer during switch statement transformation.
ClosedPublic

Authored by vsapsai on Sep 18 2017, 4:53 PM.

Details

Summary

It fixes a crash in CodeGen when we are trying to generate code for
initializer expression created before template instantiation, like

CallExpr '<dependent type>'
|-UnresolvedLookupExpr '<overloaded function type>' lvalue (ADL) = 'parse'
`-DeclRefExpr 'Buffer<N>' lvalue ParmVar 'buffer' 'Buffer<N>'

rdar://problem/33888545

Diff Detail

Repository
rL LLVM

Event Timeline

vsapsai created this revision.Sep 18 2017, 4:53 PM
ahatanak accepted this revision.Sep 20 2017, 10:52 PM

I think this is correct.

This revision is now accepted and ready to land.Sep 20 2017, 10:52 PM
This revision was automatically updated to reflect the committed changes.