[NFCI] Always initialize const members of AttributeCommonInfo

Some compilers require that const fields of an object must be explicitly
initialized by the constructor. I ran into this issue building with
clang 3.8 on Ubuntu 16.04.

llvm-svn: 372363
This commit is contained in:
Alex Langford 2019-09-20 00:16:32 +00:00
parent dd74f4839b
commit 466fb68fce
1 changed files with 2 additions and 2 deletions

View File

@ -74,11 +74,11 @@ protected:
public:
AttributeCommonInfo(SourceRange AttrRange)
: AttrRange(AttrRange), AttrKind(0), SyntaxUsed(0),
: AttrRange(AttrRange), ScopeLoc(), AttrKind(0), SyntaxUsed(0),
SpellingIndex(SpellingNotCalculated) {}
AttributeCommonInfo(SourceLocation AttrLoc)
: AttrRange(AttrLoc), AttrKind(0), SyntaxUsed(0),
: AttrRange(AttrLoc), ScopeLoc(), AttrKind(0), SyntaxUsed(0),
SpellingIndex(SpellingNotCalculated) {}
AttributeCommonInfo(const IdentifierInfo *AttrName,