[llvm] 44bbc76 - Drop a constexpr in favor of const, MSVC complains.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 18 08:05:44 PST 2020
Author: Benjamin Kramer
Date: 2020-02-18T17:04:42+01:00
New Revision: 44bbc767000494c5702ca49c870e6642a93bbb02
URL: https://github.com/llvm/llvm-project/commit/44bbc767000494c5702ca49c870e6642a93bbb02
DIFF: https://github.com/llvm/llvm-project/commit/44bbc767000494c5702ca49c870e6642a93bbb02.diff
LOG: Drop a constexpr in favor of const, MSVC complains.
lib\Target\Hexagon\HexagonGenDFAPacketizer.inc(109): error C2131: expression did not evaluate to a constant
Added:
Modified:
llvm/utils/TableGen/DFAEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/DFAEmitter.cpp b/llvm/utils/TableGen/DFAEmitter.cpp
index 330f9ac90b12..91c8638dd20f 100644
--- a/llvm/utils/TableGen/DFAEmitter.cpp
+++ b/llvm/utils/TableGen/DFAEmitter.cpp
@@ -119,7 +119,7 @@ void DfaEmitter::emit(StringRef Name, raw_ostream &OS) {
for (auto &T : DfaTransitions)
Table.add(T.second.second);
Table.layout();
- OS << "constexpr std::array<NfaStatePair, " << Table.size() << "> " << Name
+ OS << "const std::array<NfaStatePair, " << Table.size() << "> " << Name
<< "TransitionInfo = {{\n";
Table.emit(
OS,
More information about the llvm-commits
mailing list