Skip to content

Commit f57d97e

Browse files
committed
Fix link error at -O0
1 parent aa84078 commit f57d97e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/lib/Passes/NonPacProtectedRetAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static void traceRegMask(const BinaryContext &BC, StringRef Label,
8787
// This class represents mapping from a set of arbitrary physical registers to
8888
// consecutive array indexes.
8989
class TrackedRegisters {
90-
static const uint16_t NoIndex = -1;
90+
static constexpr uint16_t NoIndex = -1;
9191
const std::vector<MCPhysReg> Registers;
9292
std::vector<uint16_t> RegToIndexMapping;
9393

0 commit comments

Comments
 (0)