Skip to content

Commit

Permalink
Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
pgoodman committed Mar 13, 2023
1 parent 34eea09 commit 72c48a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ports/llvm-15/0025-PASTA-patches.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From f941cc37d2e914c402da86edcc55e563e90313e2 Mon Sep 17 00:00:00 2001
From c521bb0dde19bcacaaed085c7d9202d658b87da9 Mon Sep 17 00:00:00 2001
From: Peter Goodman <[email protected]>
Date: Mon, 14 Nov 2022 14:51:27 -0500
Subject: [PATCH] Patches for PASTA
Expand Down Expand Up @@ -330,7 +330,7 @@ index 4d229ae61..923107b84 100644
public:
/// Create a TokenLexer for the specified macro with the specified actual
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index cfd7bf604..c70ebd052 100644
index cfd7bf604..fb20b33cd 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -3519,48 +3519,94 @@ QualType ASTContext::getConstantArrayType(QualType EltTy,
Expand Down Expand Up @@ -442,8 +442,8 @@ index cfd7bf604..c70ebd052 100644
+ ConstantArrayType::totalSizeToAlloc<const Expr *>(OrigSizeExpr ? 1 : 0),
+ TypeAlignment);
+ OrigATP = new (OrigMem)
+ ConstantArrayType(EltTy, QualType(ATP, 0), ArySize, OrigSizeExpr,
+ ASM, IndexTypeQuals);
+ ConstantArrayType(EltTy, ATP->getCanonicalTypeInternal(),
+ ArySize, OrigSizeExpr, ASM, IndexTypeQuals);
+ ConstantArrayTypes.InsertNode(OrigATP, OrigInsertPos);
+ Types.push_back(OrigATP);
+ }
Expand Down Expand Up @@ -491,7 +491,7 @@ index cfd7bf604..c70ebd052 100644
+
+ return cast<ArrayType>(result);
+ }
+
+
if (const auto *IAT = dyn_cast<IncompleteArrayType>(ATy))
return cast<ArrayType>(getIncompleteArrayType(NewEltTy,
IAT->getSizeModifier(),
Expand Down

0 comments on commit 72c48a9

Please sign in to comment.