Sean Callanan 83b8ad0eaa Fixed a serious bug in DeportType where the types could retain DeclContexts that
pointed into the artificial function constructed for the expression.  I now make
anything that pointed to the function as its DeclContext be global while the
copy occurs; afterward I restored the old DeclContext.

Added a testcase that make sure that this works properly and doesn't crash
anything.

<rdar://problem/21049838>

llvm-svn: 241695
2015-07-08 18:03:41 +00:00
..
2015-01-20 15:13:01 +00:00
2015-07-06 18:56:04 +00:00
2011-11-29 19:13:38 +00:00
2014-01-08 03:14:18 +00:00
2015-07-06 15:57:52 +00:00
2015-05-04 06:26:13 +00:00
2015-06-18 05:27:05 +00:00