From f960351ac4519046ea826a6dc9afe7d2ce37cf57 Mon Sep 17 00:00:00 2001 From: Jordan Rupprecht Date: Thu, 21 Mar 2019 19:13:22 +0000 Subject: [PATCH] [clang][OpenMP] Fix another test when using libgomp. Similarly to r356614, -fopenmp=libomp needs to be used for some omp-related AST matching. llvm-svn: 356700 --- clang/unittests/ASTMatchers/ASTMatchersTest.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.h b/clang/unittests/ASTMatchers/ASTMatchersTest.h index 3f3118c..78c551f 100644 --- a/clang/unittests/ASTMatchers/ASTMatchersTest.h +++ b/clang/unittests/ASTMatchers/ASTMatchersTest.h @@ -237,13 +237,13 @@ testing::AssertionResult notMatchesWithCuda(const std::string &Code, template testing::AssertionResult matchesWithOpenMP(const std::string &Code, const T &AMatcher) { - return matchesConditionally(Code, AMatcher, true, "-fopenmp"); + return matchesConditionally(Code, AMatcher, true, "-fopenmp=libomp"); } template testing::AssertionResult notMatchesWithOpenMP(const std::string &Code, const T &AMatcher) { - return matchesConditionally(Code, AMatcher, false, "-fopenmp"); + return matchesConditionally(Code, AMatcher, false, "-fopenmp=libomp"); } template -- 2.7.4