Skip to content

Commit 72c48a9

Browse files
committed
Fixes.
1 parent 34eea09 commit 72c48a9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ports/llvm-15/0025-PASTA-patches.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From f941cc37d2e914c402da86edcc55e563e90313e2 Mon Sep 17 00:00:00 2001
1+
From c521bb0dde19bcacaaed085c7d9202d658b87da9 Mon Sep 17 00:00:00 2001
22
From: Peter Goodman <[email protected]>
33
Date: Mon, 14 Nov 2022 14:51:27 -0500
44
Subject: [PATCH] Patches for PASTA
@@ -330,7 +330,7 @@ index 4d229ae61..923107b84 100644
330330
public:
331331
/// Create a TokenLexer for the specified macro with the specified actual
332332
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
333-
index cfd7bf604..c70ebd052 100644
333+
index cfd7bf604..fb20b33cd 100644
334334
--- a/clang/lib/AST/ASTContext.cpp
335335
+++ b/clang/lib/AST/ASTContext.cpp
336336
@@ -3519,48 +3519,94 @@ QualType ASTContext::getConstantArrayType(QualType EltTy,
@@ -442,8 +442,8 @@ index cfd7bf604..c70ebd052 100644
442442
+ ConstantArrayType::totalSizeToAlloc<const Expr *>(OrigSizeExpr ? 1 : 0),
443443
+ TypeAlignment);
444444
+ OrigATP = new (OrigMem)
445-
+ ConstantArrayType(EltTy, QualType(ATP, 0), ArySize, OrigSizeExpr,
446-
+ ASM, IndexTypeQuals);
445+
+ ConstantArrayType(EltTy, ATP->getCanonicalTypeInternal(),
446+
+ ArySize, OrigSizeExpr, ASM, IndexTypeQuals);
447447
+ ConstantArrayTypes.InsertNode(OrigATP, OrigInsertPos);
448448
+ Types.push_back(OrigATP);
449449
+ }
@@ -491,7 +491,7 @@ index cfd7bf604..c70ebd052 100644
491491
+
492492
+ return cast<ArrayType>(result);
493493
+ }
494-
+
494+
+
495495
if (const auto *IAT = dyn_cast<IncompleteArrayType>(ATy))
496496
return cast<ArrayType>(getIncompleteArrayType(NewEltTy,
497497
IAT->getSizeModifier(),

0 commit comments

Comments
 (0)