Skip to content

Commit 2a438dd

Browse files
committed
Style fix
1 parent aae8dfc commit 2a438dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

gen/toir.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,10 +1551,12 @@ class ToElemVisitor : public Visitor {
15511551
auto nw = llvm::GEPNoWrapFlags::inBounds();
15521552
if (e->op == EXP::plusPlus)
15531553
nw |= llvm::GEPNoWrapFlags::noUnsignedWrap();
1554-
post = DtoGEP1(DtoMemType(dv->type->nextOf()), val, offset, "", p->scopebb(), nw);
1555-
#else
1556-
post = DtoGEP1(DtoMemType(dv->type->nextOf()), val, offset, "", p->scopebb());
15571554
#endif
1555+
post = DtoGEP1(DtoMemType(dv->type->nextOf()), val, offset, "", p->scopebb()
1556+
#if LDC_LLVM_VER >= 2000
1557+
, nw
1558+
#endif
1559+
);
15581560
} else if (e1type->isComplex()) {
15591561
assert(e2type->isComplex());
15601562
LLValue *one = LLConstantFP::get(DtoComplexBaseType(e1type), 1.0);

0 commit comments

Comments
 (0)