diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-03-27 22:50:18 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-03-27 22:50:18 +0000 |
commit | 377066a5f51ea6c7fe0abfaafc07bdc062d2570d (patch) | |
tree | 3cd089503431d6714b311a8c047208e300781f92 /clang/unittests/ASTMatchers/ASTMatchersTest.cpp | |
parent | edbdd2e5df8b59dac8ae5f45059407f8a79850d6 (diff) | |
download | bcm5719-llvm-377066a5f51ea6c7fe0abfaafc07bdc062d2570d.tar.gz bcm5719-llvm-377066a5f51ea6c7fe0abfaafc07bdc062d2570d.zip |
Use the new Windows environment for target detection
This follows the LLVM change to canonicalise the Windows target triple
spellings. Rather than treating each Windows environment as a single entity,
the environments are now modelled properly as an environment. This is a
mechanical change to convert the triple use to reflect that change.
llvm-svn: 204978
Diffstat (limited to 'clang/unittests/ASTMatchers/ASTMatchersTest.cpp')
-rw-r--r-- | clang/unittests/ASTMatchers/ASTMatchersTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp index 787f81992d9..6082c2b90a3 100644 --- a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp +++ b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp @@ -105,8 +105,9 @@ TEST(NameableDeclaration, REMatchesVariousDecls) { TEST(DeclarationMatcher, MatchClass) { DeclarationMatcher ClassMatcher(recordDecl()); - if (llvm::Triple(llvm::sys::getDefaultTargetTriple()).getOS() != - llvm::Triple::Win32) + llvm::Triple Triple(llvm::sys::getDefaultTargetTriple()); + if (Triple.getOS() != llvm::Triple::Win32 || + Triple.getEnvironment() != llvm::Triple::MSVC) EXPECT_FALSE(matches("", ClassMatcher)); else // Matches class type_info. |