mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
[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
This commit is contained in:
parent
16a76ce5f3
commit
e1ceee0a1d
@ -19,7 +19,7 @@
|
||||
#include <string>
|
||||
using namespace llvm;
|
||||
|
||||
Regex::Regex() : error(REG_BADPAT), preg(nullptr) {}
|
||||
Regex::Regex() : preg(nullptr), error(REG_BADPAT) {}
|
||||
|
||||
Regex::Regex(StringRef regex, unsigned Flags) {
|
||||
unsigned flags = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user