GitLab will continue to be upgraded from 11.4.5-ce.0 on November 25th 2019 at 4.00pm (AEDT) to 5.00pm (AEDT) due to Critical Security Patch Availability. During the update, GitLab and Mattermost services will not be available.

Commit 1b0216d0 authored by Isaac Oscar Gariano's avatar Isaac Oscar Gariano

Fixed a bug

parent 116ee362
Pipeline #1235 passed with stages
in 54 minutes and 57 seconds
......@@ -4724,15 +4724,12 @@ impl<'a> InstructionSelection {
let ref ops = inst.ops;
let ref func = ops[calldata.func];
let ref func_sig = match func.v {
TreeNode_::Value(ref pv) => {
let ty: &MuType = &pv.ty;
match ty.v {
MuType_::FuncRef(ref sig) | MuType_::UFuncPtr(ref sig) => sig,
_ => panic!("expected funcref/ptr type")
}
let func_sig = {
let t = func.ty();
match t.v {
MuType_::FuncRef(ref sig) | MuType_::UFuncPtr(ref sig) => sig.clone(),
_ => panic!("expected funcref/ufuncptr type")
}
_ => panic!("expected funcref/ptr type")
};
debug_assert!(func_sig.arg_tys.len() == calldata.args.len());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment