Change AsmName's type from StringRef to std::string. AsmName was pointing to a tempor...
authorFrancois Pichet <pichet2000@gmail.com>
Wed, 29 Jun 2011 11:25:34 +0000 (11:25 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Wed, 29 Jun 2011 11:25:34 +0000 (11:25 +0000)
commit2e10b0874447c8627a86d551f28f88620e0958c7
tree1c7991416ee5891bb1e96e4930aeb7649d2efdcd
parent0fb7dcd48fd6580e3ebf35eafa952a9fe1cac8b2
Change AsmName's type from StringRef to std::string. AsmName was pointing to a temporary string object that was destroyed. This is undefined behavior and MSVC didn't like it.

This fixes over 300+ failing tests on MSVC.
Credit for this fix goes to chapuni.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134064 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/AsmWriterEmitter.cpp