Commit 94580db
Nuri Amari
[llvm-cgdata] Fix Dangling StringRefs
`OutputFilename` and `Filename` are assigned to StringRefs in
`parseArgs`, but after `parseArgs` returns the `InputArgsList` that once
owned the underlying strings is popped off the stack, and the StringRefs
can be left pointing at garbage.
Switch to std::string to own the strings.1 parent 3695d6c commit 94580db
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
| 78 | + | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments