|
1 | | -From f941cc37d2e914c402da86edcc55e563e90313e2 Mon Sep 17 00:00:00 2001 |
| 1 | +From c521bb0dde19bcacaaed085c7d9202d658b87da9 Mon Sep 17 00:00:00 2001 |
2 | 2 | From: Peter Goodman < [email protected]> |
3 | 3 | Date: Mon, 14 Nov 2022 14:51:27 -0500 |
4 | 4 | Subject: [PATCH] Patches for PASTA |
@@ -330,7 +330,7 @@ index 4d229ae61..923107b84 100644 |
330 | 330 | public: |
331 | 331 | /// Create a TokenLexer for the specified macro with the specified actual |
332 | 332 | diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp |
333 | | -index cfd7bf604..c70ebd052 100644 |
| 333 | +index cfd7bf604..fb20b33cd 100644 |
334 | 334 | --- a/clang/lib/AST/ASTContext.cpp |
335 | 335 | +++ b/clang/lib/AST/ASTContext.cpp |
336 | 336 | @@ -3519,48 +3519,94 @@ QualType ASTContext::getConstantArrayType(QualType EltTy, |
@@ -442,8 +442,8 @@ index cfd7bf604..c70ebd052 100644 |
442 | 442 | + ConstantArrayType::totalSizeToAlloc<const Expr *>(OrigSizeExpr ? 1 : 0), |
443 | 443 | + TypeAlignment); |
444 | 444 | + OrigATP = new (OrigMem) |
445 | | -+ ConstantArrayType(EltTy, QualType(ATP, 0), ArySize, OrigSizeExpr, |
446 | | -+ ASM, IndexTypeQuals); |
| 445 | ++ ConstantArrayType(EltTy, ATP->getCanonicalTypeInternal(), |
| 446 | ++ ArySize, OrigSizeExpr, ASM, IndexTypeQuals); |
447 | 447 | + ConstantArrayTypes.InsertNode(OrigATP, OrigInsertPos); |
448 | 448 | + Types.push_back(OrigATP); |
449 | 449 | + } |
@@ -491,7 +491,7 @@ index cfd7bf604..c70ebd052 100644 |
491 | 491 | + |
492 | 492 | + return cast<ArrayType>(result); |
493 | 493 | + } |
494 | | -+ |
| 494 | ++ |
495 | 495 | if (const auto *IAT = dyn_cast<IncompleteArrayType>(ATy)) |
496 | 496 | return cast<ArrayType>(getIncompleteArrayType(NewEltTy, |
497 | 497 | IAT->getSizeModifier(), |
|
0 commit comments