Skip to content

Commit 6e81915

Browse files
committed
Style fix
1 parent 476fc56 commit 6e81915

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
@@ -1538,10 +1538,12 @@ class ToElemVisitor : public Visitor {
15381538
auto nw = llvm::GEPNoWrapFlags::inBounds();
15391539
if (e->op == EXP::plusPlus)
15401540
nw |= llvm::GEPNoWrapFlags::noUnsignedWrap();
1541-
post = DtoGEP1(DtoMemType(dv->type->nextOf()), val, offset, "", p->scopebb(), nw);
1542-
#else
1543-
post = DtoGEP1(DtoMemType(dv->type->nextOf()), val, offset, "", p->scopebb());
15441541
#endif
1542+
post = DtoGEP1(DtoMemType(dv->type->nextOf()), val, offset, "", p->scopebb()
1543+
#if LDC_LLVM_VER >= 2000
1544+
, nw
1545+
#endif
1546+
);
15451547
} else if (e1type->isComplex()) {
15461548
assert(e2type->isComplex());
15471549
LLValue *one = LLConstantFP::get(DtoComplexBaseType(e1type), 1.0);

0 commit comments

Comments
 (0)