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:15:11 +00:00
2012-08-04 00:04:03 +00:00
2012-07-19 21:43:55 +00:00