Benjamin Kramer 189f231a4b Postpone the deletion of the old name in StructType::setName to allow using a slice of the old name.
Fixes PR13522. Add a rudimentary unit test to exercise the behavior.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161296 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-04 09:47:02 +00:00
..
2012-07-19 00:11:40 +00:00
2012-07-06 23:43:12 +00:00
2012-07-19 00:11:40 +00:00
2012-06-23 12:14:23 +00:00
2012-07-19 00:11:40 +00:00
2012-03-26 14:04:17 +00:00