diff options
author | YunQiang Su <syq@debian.org> | 2024-05-02 08:04:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 08:04:53 +0800 |
commit | 4b75fcf0a50f4be955b611e8e20d84d90ea133c8 (patch) | |
tree | b80b7d32721e5185aacc284cdabc73467e5f0862 /clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp | |
parent | 8c64a304123b77d598eda73a14cf3ff0ec7970dc (diff) | |
download | llvm-4b75fcf0a50f4be955b611e8e20d84d90ea133c8.zip llvm-4b75fcf0a50f4be955b611e8e20d84d90ea133c8.tar.gz llvm-4b75fcf0a50f4be955b611e8e20d84d90ea133c8.tar.bz2 |
Triple::normalize: Use none as OS for XX-none-ABI (#89638)
When parsing a 3-component triple, after we determine Arch and Env, if
the middle component is "none", treat it as OS instead of Vendor.
See:
https://discourse.llvm.org/t/rfc-baremetal-target-triple-normalization/78524
Fixes: #89582.
Diffstat (limited to 'clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp')
-rw-r--r-- | clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp b/clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp index f729566..c4a4007 100644 --- a/clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp +++ b/clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp @@ -40,7 +40,7 @@ TEST(IncrementalCompilerBuilder, SetTargetTriple) { auto CB = clang::IncrementalCompilerBuilder(); CB.SetTargetTriple("armv6-none-eabi"); auto CI = cantFail(CB.CreateCpp()); - EXPECT_EQ(CI->getTargetOpts().Triple, "armv6-none-unknown-eabi"); + EXPECT_EQ(CI->getTargetOpts().Triple, "armv6-unknown-none-eabi"); cleanupRemappedFileBuffers(*CI); } |