diff options
author | Fangrui Song <maskray@google.com> | 2020-01-06 10:16:28 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-01-06 15:51:02 -0800 |
commit | 6904cd948674df7f55843519695dbc95157a9429 (patch) | |
tree | 0a8a3c99830e0e6bbcb5ea07a960a6df51a4cca2 /clang/lib/CodeGen | |
parent | c6fd16af2be98b49d663285e3808ecde61bec614 (diff) | |
download | bcm5719-llvm-6904cd948674df7f55843519695dbc95157a9429.tar.gz bcm5719-llvm-6904cd948674df7f55843519695dbc95157a9429.zip |
Add Triple::isX86()
Reviewed By: craig.topper, skan
Differential Revision: https://reviews.llvm.org/D72247
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 12517709573..4b89b1b83a6 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -821,8 +821,7 @@ static llvm::Value *EmitBitTestIntrinsic(CodeGenFunction &CGF, // X86 has special BT, BTC, BTR, and BTS instructions that handle the array // indexing operation internally. Use them if possible. - llvm::Triple::ArchType Arch = CGF.getTarget().getTriple().getArch(); - if (Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64) + if (CGF.getTarget().getTriple().isX86()) return EmitX86BitTestIntrinsic(CGF, BT, E, BitBase, BitPos); // Otherwise, use generic code to load one byte and test the bit. Use all but |