llvm.org GIT mirror llvm / 44410ed
Fix build break from r347239 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347246 91177308-0d34-0410-b5e6-96231b3b80d8 Paul Robinson 7 months ago
2 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
12441244 unsigned ScopeLine = LineNo;
12451245 DISubprogram *SP = DBuilder->createFunction(
12461246 FContext, P.getName(), StringRef(), Unit, LineNo,
1247 CreateFunctionType(TheFunction->arg_size(), Unit),
1248 false /* internal linkage */, true /* definition */, ScopeLine,
1249 DINode::FlagPrototyped, false);
1247 CreateFunctionType(TheFunction->arg_size(), Unit), ScopeLine,
1248 DINode::FlagPrototyped, DISubprogram::SPFlagDefinition);
12501249 TheFunction->setSubprogram(SP);
12511250
12521251 // Push the current scope.
16271627 bool IsOptimized,
16281628 unsigned Virtuality = SPFlagNonvirtual) {
16291629 // We're assuming virtuality is the low-order field.
1630 static_assert(SPFlagVirtual == dwarf::DW_VIRTUALITY_virtual &&
1631 SPFlagPureVirtual == dwarf::DW_VIRTUALITY_pure_virtual,
1632 "Virtuality constant mismatch");
1630 static_assert(
1631 int(SPFlagVirtual) == int(dwarf::DW_VIRTUALITY_virtual &&
1632 int(SPFlagPureVirtual) == int(dwarf::DW_VIRTUALITY_pure_virtual),
1633 "Virtuality constant mismatch");
16331634 return static_cast((Virtuality & SPFlagVirtuality) |
16341635 (IsLocalToUnit ? SPFlagLocalToUnit : 0) |
16351636 (IsDefinition ? SPFlagDefinition : 0) |