File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -237,8 +237,6 @@ using namespace llvm;
237237#pragma clang diagnostic error "-Wextra"
238238#pragma clang diagnostic error "-Wunknown-attributes"
239239
240- // HACK(eddyb) allow code below to assume `uintN_t` maps to Rust `uN`.
241- // FIXME(eddyb) make sure this doesn't run into `u128` ABI issues.
242240using uint128_t = __uint128_t;
243241
244242template<typename F>
@@ -374,7 +372,7 @@ struct __attribute__((packed)) {name} {{
374372 }}
375373}};
376374extern "C" {{
377- void {exported_symbol}({name} *out, const FuzzOp<{name}> & op) {{
375+ void {exported_symbol}({name} *out, FuzzOp<{name}> op) {{
378376 *out = op.eval();
379377 }}
380378}}"#
Original file line number Diff line number Diff line change @@ -168,14 +168,11 @@ macro_rules! float_reprs {
168168
169169 fn cxx_apf_eval_fuzz_op( op: FuzzOp <Self >) -> Self {
170170 extern "C" {
171- // HACK(eddyb) the warning is about `u128` ABI issues,
172- // which is also why indirection is used.
173- #[ allow( improper_ctypes) ]
174- fn $cxx_apf_eval_fuzz_op( out: & mut MaybeUninit <$name>, op: & FuzzOp <$name>) ;
171+ fn $cxx_apf_eval_fuzz_op( out: & mut MaybeUninit <$name>, op: FuzzOp <$name>) ;
175172 }
176173 unsafe {
177174 let mut out = MaybeUninit :: uninit( ) ;
178- $cxx_apf_eval_fuzz_op( & mut out, & op) ;
175+ $cxx_apf_eval_fuzz_op( & mut out, op) ;
179176 out. assume_init( )
180177 }
181178 }
You can’t perform that action at this time.
0 commit comments