diff options
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h')
-rw-r--r-- | llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h b/llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h index 5cc7071a866..e8fab561564 100644 --- a/llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h +++ b/llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h @@ -46,7 +46,9 @@ public: if (TM) { // If we found a TargetMachine, check that it's one that Orc supports. const Triple& TT = TM->getTargetTriple(); - if (TT.getArch() != Triple::x86_64 || TT.isOSWindows()) + + if ((TT.getArch() != Triple::x86_64 && TT.getArch() != Triple::x86) || + TT.isOSWindows()) TM = nullptr; } }; |