[clang][OpenMP] Fix another test when using libgomp.
authorJordan Rupprecht <rupprecht@google.com>
Thu, 21 Mar 2019 19:13:22 +0000 (19:13 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Thu, 21 Mar 2019 19:13:22 +0000 (19:13 +0000)
Similarly to r356614, -fopenmp=libomp needs to be used for some omp-related AST matching.

llvm-svn: 356700

clang/unittests/ASTMatchers/ASTMatchersTest.h

index 3f3118c..78c551f 100644 (file)
@@ -237,13 +237,13 @@ testing::AssertionResult notMatchesWithCuda(const std::string &Code,
 template <typename T>
 testing::AssertionResult matchesWithOpenMP(const std::string &Code,
                                            const T &AMatcher) {
-  return matchesConditionally(Code, AMatcher, true, "-fopenmp");
+  return matchesConditionally(Code, AMatcher, true, "-fopenmp=libomp");
 }
 
 template <typename T>
 testing::AssertionResult notMatchesWithOpenMP(const std::string &Code,
                                               const T &AMatcher) {
-  return matchesConditionally(Code, AMatcher, false, "-fopenmp");
+  return matchesConditionally(Code, AMatcher, false, "-fopenmp=libomp");
 }
 
 template <typename T>