[clang] [NFC] use appropriate castas (PR #95272)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 12 10:29:06 PDT 2024
https://github.com/mahesh-attarde created https://github.com/llvm/llvm-project/pull/95272
NFC fix for appropriate function call.
Requested by aaron while discussing https://github.com/llvm/llvm-project/pull/95257 https://github.com/llvm/llvm-project/pull/95257
>From 4baa0826b1aede21d0fc0e4f90d7e5880e767b73 Mon Sep 17 00:00:00 2001
From: mahesh-attarde <mahesh.attarde at intel.com>
Date: Wed, 12 Jun 2024 10:28:08 -0700
Subject: [PATCH] [NFC] use appropriate castas
---
clang/lib/CodeGen/Targets/X86.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/lib/CodeGen/Targets/X86.cpp b/clang/lib/CodeGen/Targets/X86.cpp
index 43dadf5e724ac..433ceaa76c847 100644
--- a/clang/lib/CodeGen/Targets/X86.cpp
+++ b/clang/lib/CodeGen/Targets/X86.cpp
@@ -2834,7 +2834,7 @@ ABIArgInfo
X86_64ABIInfo::classifyRegCallStructTypeImpl(QualType Ty, unsigned &NeededInt,
unsigned &NeededSSE,
unsigned &MaxVectorWidth) const {
- auto RT = Ty->getAs<RecordType>();
+ auto RT = Ty->castAs<RecordType>();
assert(RT && "classifyRegCallStructType only valid with struct types");
if (RT->getDecl()->hasFlexibleArrayMember())
More information about the cfe-commits
mailing list