rustc: Fix bug in equal_abi that was preventing Rust intrinsics from working

This commit is contained in:
Patrick Walton 2011-05-05 14:21:21 -07:00
parent 2131f2bb6b
commit 9a1f0977a2

View file

@ -1228,6 +1228,12 @@ fn equal_abi(ast.native_abi a, ast.native_abi b) -> bool {
case (_) { ret false; }
}
}
case (ast.native_abi_rust_intrinsic) {
alt (b) {
case (ast.native_abi_rust_intrinsic) { ret true; }
case (_) { ret false; }
}
}
case (ast.native_abi_cdecl) {
alt (b) {
case (ast.native_abi_cdecl) { ret true; }