diff options
| author | bors <bors@rust-lang.org> | 2016-03-01 23:30:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-03-01 23:30:49 +0000 |
| commit | 339a409bfdb6c1e9b280388b5d8d9e898217840f (patch) | |
| tree | a578361877af6042eb3e4e9f86ea290b97b349b1 /src/rustllvm/RustWrapper.cpp | |
| parent | 84d8fec9b014975145eb0d9d6ec29216593e10f6 (diff) | |
| parent | d1a12392b2bcbb58538cc99a995e962d2f0cdf45 (diff) | |
| download | rust-339a409bfdb6c1e9b280388b5d8d9e898217840f.tar.gz rust-339a409bfdb6c1e9b280388b5d8d9e898217840f.zip | |
Auto merge of #31430 - nagisa:mir-dyndrop, r=nikomatsakis
Zeroing on-drop seems to work fine. Still thinking about the best way to approach zeroing on-move. (based on top of the other drop PR; only the last 2 commits are relevant)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
| -rw-r--r-- | src/rustllvm/RustWrapper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp index 4ebe49512d7..91cf4aa1da9 100644 --- a/src/rustllvm/RustWrapper.cpp +++ b/src/rustllvm/RustWrapper.cpp @@ -1167,3 +1167,8 @@ LLVMRustBuildInvoke(LLVMBuilderRef B, return LLVMBuildInvoke(B, Fn, Args, NumArgs, Then, Catch, Name); } #endif + +extern "C" void LLVMRustPositionBuilderAtStart(LLVMBuilderRef B, LLVMBasicBlockRef BB) { + auto point = unwrap(BB)->getFirstInsertionPt(); + unwrap(B)->SetInsertPoint(unwrap(BB), point); +} |
