diff options
| author | Patrick Walton <[email protected]> | 2011-04-19 10:23:49 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-04-19 10:40:38 -0700 |
| commit | 37b5e91544210e0520edb6056a37c18037c88537 (patch) | |
| tree | 2eca4eae6f320d16eee34dfde4e66171b71b30bc /src/comp/middle | |
| parent | add rustboot-specific log upcalls to .def file (diff) | |
| download | rust-37b5e91544210e0520edb6056a37c18037c88537.tar.xz rust-37b5e91544210e0520edb6056a37c18037c88537.zip | |
rustc: Assert that each basic block isn't terminated before adding instructions to it
Diffstat (limited to 'src/comp/middle')
| -rw-r--r-- | src/comp/middle/trans.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index f0010a5b..e83945d0 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -5401,7 +5401,7 @@ fn trans_stmt(@block_ctxt cx, &ast.stmt s) -> result { fn new_builder(BasicBlockRef llbb) -> builder { let BuilderRef llbuild = llvm.LLVMCreateBuilder(); llvm.LLVMPositionBuilderAtEnd(llbuild, llbb); - ret builder(llbuild); + ret builder(llbuild, @mutable false); } // You probably don't want to use this one. See the |