summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorJim Lin <tclin914@gmail.com>2020-01-07 17:32:39 +0800
committerJim Lin <tclin914@gmail.com>2020-01-07 17:35:44 +0800
commitab1bcda851d95aeec03ffc1218bf9cae261a9280 (patch)
tree49743171ab6e0e51dfda5e8a26424369ed9010b8 /clang/lib/Sema
parent4814b68b7ad2a4b0425d31a93ed2583cc1634445 (diff)
downloadbcm5719-llvm-ab1bcda851d95aeec03ffc1218bf9cae261a9280.tar.gz
bcm5719-llvm-ab1bcda851d95aeec03ffc1218bf9cae261a9280.zip
[NFC] Use isX86() instead of getArch()
Summary: This is a clean up for https://reviews.llvm.org/D72247. Reviewers: MaskRay, craig.topper, jhenderson Reviewed By: MaskRay Subscribers: hiraditya, rupprecht, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D72320
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 15e86ba8e8d..61cd629646f 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -15359,8 +15359,7 @@ static bool funcHasParameterSizeMangling(Sema &S, FunctionDecl *FD) {
// These manglings don't do anything on non-Windows or non-x86 platforms, so
// we don't need parameter type sizes.
const llvm::Triple &TT = S.Context.getTargetInfo().getTriple();
- if (!TT.isOSWindows() || (TT.getArch() != llvm::Triple::x86 &&
- TT.getArch() != llvm::Triple::x86_64))
+ if (!TT.isOSWindows() || !TT.isX86())
return false;
// If this is C++ and this isn't an extern "C" function, parameters do not
OpenPOWER on IntegriCloud