Fix -Wreorder warning.

llvm-svn: 302294
This commit is contained in:
Zachary Turner 2017-05-05 21:25:31 +00:00
parent 4cd809297d
commit 0f5f038bf0

View File

@ -64,8 +64,10 @@ class VarStreamArrayIterator
public:
VarStreamArrayIterator() = default;
VarStreamArrayIterator(const ArrayType &Array, const WrappedCtx &Ctx,
BinaryStreamRef Stream, bool *HadError = nullptr, uint32_t Offset = 0)
: IterRef(Stream), Ctx(&Ctx), Array(&Array), HadError(HadError), AbsOffset(Offset) {
BinaryStreamRef Stream, bool *HadError = nullptr,
uint32_t Offset = 0)
: IterRef(Stream), Ctx(&Ctx), Array(&Array), AbsOffset(Offset),
HadError(HadError) {
if (IterRef.getLength() == 0)
moveToEnd();
else {