================
@@ -1220,7 +1220,7 @@ static void addX86InterruptAttrs(const FunctionDecl *FD, 
llvm::GlobalValue *GV,
   if (FD->getNumParams() == 0)
     return;
 
-  auto PtrTy = cast<PointerType>(FD->getParamDecl(0)->getType());
+  const auto *PtrTy = FD->getParamDecl(0)->getType()->castAs<PointerType>();
----------------
efriedma-quic wrote:

This looks like the right fix; it's consistent with how Sema decides an 
argument is a "pointer".

https://github.com/llvm/llvm-project/pull/230903
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to