diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-04-15 07:25:22 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-04-23 10:04:29 -0700 |
| commit | de7845ac72e01b491b4ed352f23c2c9a73efc45b (patch) | |
| tree | 1b834db9811246cc36ac73f64a0584ac07702019 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | bb580f1a56138bd5a96ccc95c0f61caab72cf975 (diff) | |
| download | rust-de7845ac72e01b491b4ed352f23c2c9a73efc45b.tar.gz rust-de7845ac72e01b491b4ed352f23c2c9a73efc45b.zip | |
rustc: Fix passing errors from LLVM to rustc
Many of the instances of setting a global error variable ended up leaving a dangling pointer into free'd memory. This changes the method of error transmission to strdup any error and "relinquish ownership" to rustc when it gets an error. The corresponding Rust code will then free the error as necessary. Closes #12865
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
