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 /llvm/lib/IR | |
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 'llvm/lib/IR')
-rw-r--r-- | llvm/lib/IR/AutoUpgrade.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/IR/AutoUpgrade.cpp b/llvm/lib/IR/AutoUpgrade.cpp index 83bf052eb08..ecd1a12c2e5 100644 --- a/llvm/lib/IR/AutoUpgrade.cpp +++ b/llvm/lib/IR/AutoUpgrade.cpp @@ -4163,9 +4163,7 @@ std::string llvm::UpgradeDataLayoutString(StringRef DL, StringRef TT) { // If X86, and the datalayout matches the expected format, add pointer size // address spaces to the datalayout. - Triple::ArchType Arch = Triple(TT).getArch(); - if ((Arch != llvm::Triple::x86 && Arch != llvm::Triple::x86_64) || - DL.contains(AddrSpaces)) + if (!Triple(TT).isX86() || DL.contains(AddrSpaces)) return DL; SmallVector<StringRef, 4> Groups; |