diff options
author | Alex Langford <apl@fb.com> | 2019-09-20 00:16:32 +0000 |
---|---|---|
committer | Alex Langford <apl@fb.com> | 2019-09-20 00:16:32 +0000 |
commit | 466fb68fce10d34963c2fd651de32bd3a4ddcd1f (patch) | |
tree | cca3fcfcd80a4586aa39eebc2c0eb66180e15b4c | |
parent | dd74f4839b1291810f376e0a5739ddd0abff91be (diff) | |
download | bcm5719-llvm-466fb68fce10d34963c2fd651de32bd3a4ddcd1f.tar.gz bcm5719-llvm-466fb68fce10d34963c2fd651de32bd3a4ddcd1f.zip |
[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
-rw-r--r-- | clang/include/clang/Basic/AttributeCommonInfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/AttributeCommonInfo.h b/clang/include/clang/Basic/AttributeCommonInfo.h index c8fc0a5a044..545e7e9a2b4 100644 --- a/clang/include/clang/Basic/AttributeCommonInfo.h +++ b/clang/include/clang/Basic/AttributeCommonInfo.h @@ -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, |