From: Jordan Rupprecht Date: Thu, 21 Mar 2019 19:13:22 +0000 (+0000) Subject: [clang][OpenMP] Fix another test when using libgomp. X-Git-Tag: llvmorg-10-init~9448 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f960351ac4519046ea826a6dc9afe7d2ce37cf57;p=platform%2Fupstream%2Fllvm.git [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 --- 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