Skip to content

Commit 603d342

Browse files
committed
Feature-gate for libgccjit 12
1 parent d4ab681 commit 603d342

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/builder.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,6 +1391,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
13911391
unimplemented!();
13921392
}
13931393

1394+
#[cfg(feature="master")]
13941395
pub fn vector_reduce<F>(&mut self, src: RValue<'gcc>, op: F) -> RValue<'gcc>
13951396
where F: Fn(RValue<'gcc>, RValue<'gcc>, &'gcc Context<'gcc>) -> RValue<'gcc>
13961397
{
@@ -1417,6 +1418,13 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
14171418
.to_rvalue()
14181419
}
14191420

1421+
#[cfg(not(feature="master"))]
1422+
pub fn vector_reduce<F>(&mut self, src: RValue<'gcc>, op: F) -> RValue<'gcc>
1423+
where F: Fn(RValue<'gcc>, RValue<'gcc>, &'gcc Context<'gcc>) -> RValue<'gcc>
1424+
{
1425+
unimplemented!();
1426+
}
1427+
14201428
pub fn vector_reduce_op(&mut self, src: RValue<'gcc>, op: BinaryOp) -> RValue<'gcc> {
14211429
self.vector_reduce(src, |a, b, context| context.new_binary_op(None, op, a.get_type(), a, b))
14221430
}

0 commit comments

Comments
 (0)