Fix use-after-free bug caught by address sanitizer:
authorDiego Novillo <dnovillo@google.com>
Fri, 11 Apr 2014 13:55:56 +0000 (13:55 +0000)
committerDiego Novillo <dnovillo@google.com>
Fri, 11 Apr 2014 13:55:56 +0000 (13:55 +0000)
commitbb7b423bdc5cf85f4b68afdd8665e4848d2845d1
tree0dde01327b930cc11b9d2d18e9bd8c5a830ffe52
parenteb0c9094acd5f5a28c0adafb1784797d1d7a4e2d
Fix use-after-free bug caught by address sanitizer:

http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/builds/2959

The location string is returned as a std::string, not a StringRef.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206032 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DiagnosticInfo.h
lib/IR/DiagnosticInfo.cpp