[ManagedMemoryRewrite] Make pass more robust and fix memory issue
commit6fb6fd3fed939453f2780333ac51f972dcca13c5
authorTobias Grosser <tobias@grosser.es>
Sat, 19 Aug 2017 23:03:45 +0000 (19 23:03 +0000)
committerTobias Grosser <tobias@grosser.es>
Sat, 19 Aug 2017 23:03:45 +0000 (19 23:03 +0000)
treea81fb9e16118387588d2cf6e69cc06056546367a
parent4843bb76ad1103af3029298d1050ed2f2a40ae69
[ManagedMemoryRewrite] Make pass more robust and fix memory issue

Instead of using Twines and temporary expressions, we do string manipulation
through a std::string. This resolves a memory corruption issue, which likely
was caused by twines loosing their underlying string too soon.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@311264 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ManagedMemoryRewrite.cpp