Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit e1ceee0

Browse files
committed
[Support] Fix a warning introduced in r280339 due to the member
initializers not being in the same order as the members. Specifically, 'preg' is the first member followed by 'error', so they will be initialized in that order and should be written in the member initializer list in that order. For the constructor in question, there is no change in behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280345 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 16a76ce commit e1ceee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Support/Regex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <string>
2020
using namespace llvm;
2121

22-
Regex::Regex() : error(REG_BADPAT), preg(nullptr) {}
22+
Regex::Regex() : preg(nullptr), error(REG_BADPAT) {}
2323

2424
Regex::Regex(StringRef regex, unsigned Flags) {
2525
unsigned flags = 0;

0 commit comments

Comments
 (0)