commit | 29233802236f7fe1db20e00eca4f5cc8f3f64ade | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Wed Mar 23 15:13:44 2011 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Wed Mar 23 15:13:44 2011 +0000 |
tree | 698474fcb6b8a90d556e11462537a9fbec093b9e | |
parent | def863192f83d8033e1833b48ae8119a65dfc7c8 [diff] |
Teach DelayedDiagnostic to copy its string, rather than hope that the string itself lives longer than the DelayedDiagnostic. Fixes a recent use-after-free regression due to my availability attribute work. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128148 91177308-0d34-0410-b5e6-96231b3b80d8