]> git.lizzy.rs Git - rust.git/commit
Check when building invoke as well as calls
authorJames Miller <james@aatch.net>
Wed, 20 Apr 2016 06:10:40 +0000 (18:10 +1200)
committerJames Miller <james@aatch.net>
Thu, 28 Apr 2016 01:18:51 +0000 (13:18 +1200)
commitb5d7783546f938c7c2903b4d5143ff8e8e612674
treeeb54fb028fa6dbe5ee877cca310bacbe0e0d0eb7
parent3bcee269b50def69d73bd588b1619ec6a4756662
Check when building invoke as well as calls

LLVM's assertion doesn't provide much insight as to what the problem
was. We were already checking `call` instructions ourselves, so this
brings the checks from there to `invoke`.

Both the `invoke` and `call` checking is controlled by
`debug_assertions`.
src/librustc_trans/builder.rs