[clang] a473f0a - Fix mismatch from D77112 and D77499
Nathan James via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 6 12:19:22 PDT 2020
Author: Nathan James
Date: 2020-04-06T20:19:12+01:00
New Revision: a473f0a36c3f4117d8e77d3d8636303ff2f99d09
URL: https://github.com/llvm/llvm-project/commit/a473f0a36c3f4117d8e77d3d8636303ff2f99d09
DIFF: https://github.com/llvm/llvm-project/commit/a473f0a36c3f4117d8e77d3d8636303ff2f99d09.diff
LOG: Fix mismatch from D77112 and D77499
Added:
Modified:
clang/lib/ASTMatchers/Dynamic/Marshallers.cpp
Removed:
################################################################################
diff --git a/clang/lib/ASTMatchers/Dynamic/Marshallers.cpp b/clang/lib/ASTMatchers/Dynamic/Marshallers.cpp
index 7e4e3ceb2b41..64ff0dfb690e 100644
--- a/clang/lib/ASTMatchers/Dynamic/Marshallers.cpp
+++ b/clang/lib/ASTMatchers/Dynamic/Marshallers.cpp
@@ -79,8 +79,8 @@ llvm::Optional<std::string>
clang::ast_matchers::dynamic::internal::ArgTypeTraits<
clang::OpenMPClauseKind>::getBestGuess(const VariantValue &Value) {
static constexpr llvm::StringRef Allowed[] = {
-#define OPENMP_CLAUSE(TextualSpelling, Class) "OMPC_" #TextualSpelling,
-#include "clang/Basic/OpenMPKinds.def"
+#define OMP_CLAUSE_CLASS(Enum, Str, Class) #Enum,
+#include "llvm/Frontend/OpenMP/OMPKinds.def"
};
if (Value.isString())
return ::getBestGuess(Value.getString(), llvm::makeArrayRef(Allowed),
More information about the cfe-commits
mailing list