[llvm] r302294 - Fix -Wreorder warning.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Fri May 5 14:25:32 PDT 2017
Author: zturner
Date: Fri May 5 16:25:31 2017
New Revision: 302294
URL: http://llvm.org/viewvc/llvm-project?rev=302294&view=rev
Log:
Fix -Wreorder warning.
Modified:
llvm/trunk/include/llvm/Support/BinaryStreamArray.h
Modified: llvm/trunk/include/llvm/Support/BinaryStreamArray.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/BinaryStreamArray.h?rev=302294&r1=302293&r2=302294&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/BinaryStreamArray.h (original)
+++ llvm/trunk/include/llvm/Support/BinaryStreamArray.h Fri May 5 16:25:31 2017
@@ -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 {
More information about the llvm-commits
mailing list