unsigned Major, Minor, Patch;
static GCCVersion Parse(StringRef VersionText) {
- const GCCVersion BadVersion = {};
+ const GCCVersion BadVersion = {0, 0, 0};
std::pair<StringRef, StringRef> First = VersionText.split('.');
std::pair<StringRef, StringRef> Second = First.second.split('.');
- GCCVersion GoodVersion = {};
+ GCCVersion GoodVersion = {0, 0, 0};
if (First.first.getAsInteger(10, GoodVersion.Major))
return BadVersion;
if (Second.first.getAsInteger(10, GoodVersion.Minor))
// Loop over the various components which exist and select the best GCC
// installation available. GCC installs are ranked by version number.
- GCCVersion BestVersion = {};
+ GCCVersion BestVersion = {0, 0, 0};
for (unsigned i = 0, ie = Prefixes.size(); i < ie; ++i) {
if (!PathExists(Prefixes[i]))
continue;
SourceLocation EndLoc = AsmLoc;
do {
bool InBraces = false;
- unsigned short savedBraceCount;
+ unsigned short savedBraceCount = 0;
bool InAsmComment = false;
FileID FID;
- unsigned LineNo;
+ unsigned LineNo = 0;
unsigned NumTokensRead = 0;
SourceLocation LBraceLoc;