Split the braces list initialization from the [] map operator to keep MSVC happy.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335614
91177308-0d34-0410-b5e6-
96231b3b80d8
/// Variable decls are numbered by identifier.
unsigned getManglingNumber(const VarDecl *VD, unsigned) override {
- if (auto *DD = dyn_cast<DecompositionDecl>(VD))
- return ++DecompsitionDeclManglingNumbers[
- DecompositionDeclName{DD->bindings()}];
+ if (auto *DD = dyn_cast<DecompositionDecl>(VD)) {
+ DecompositionDeclName Name{DD->bindings()};
+ return ++DecompsitionDeclManglingNumbers[Name];
+ }
const IdentifierInfo *Identifier = VD->getIdentifier();
if (!Identifier) {