[clang] [AST][RISCV] Preserve RISC-V intrinsic pragma in AST (PR #171981)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 12 09:14:22 PST 2025


================
@@ -9063,6 +9074,11 @@ void ASTReader::UpdateSema() {
         PointersToMembersPragmaLocation);
   }
   SemaObj->CUDA().ForceHostDeviceDepth = ForceHostDeviceDepth;
+  if (!RISCVVecIntrinsicPragma.empty()) {
+    SemaObj->RISCV().DeclareRVVBuiltins = RISCVVecIntrinsicPragma[0];
----------------
topperc wrote:

assert that size is 3?

https://github.com/llvm/llvm-project/pull/171981


More information about the cfe-commits mailing list