diff --git a/mlir/unittests/Target/LLVM/SerializeToLLVMBitcode.cpp b/mlir/unittests/Target/LLVM/SerializeToLLVMBitcode.cpp index c23ed7efd72fdf..69c9d9b2f32020 100644 --- a/mlir/unittests/Target/LLVM/SerializeToLLVMBitcode.cpp +++ b/mlir/unittests/Target/LLVM/SerializeToLLVMBitcode.cpp @@ -55,7 +55,7 @@ TEST_F(MLIRTargetLLVM, SKIP_WITHOUT_NATIVE(SerializeToLLVMBitcode)) { ASSERT_TRUE(!!module); // Serialize the module. - std::string targetTriple = llvm::sys::getDefaultTargetTriple(); + std::string targetTriple = llvm::sys::getProcessTriple(); LLVM::ModuleToObject serializer(*(module->getOperation()), targetTriple, "", ""); std::optional> serializedModule = serializer.run();