Index: src/compiler/opcodes.cc |
diff --git a/src/compiler/opcodes.cc b/src/compiler/opcodes.cc |
index 044395c785960959484cbfb54e5dcf64620713c7..1c94c19c780fec8c167a0b4a5bf2277c89bd7d89 100644 |
--- a/src/compiler/opcodes.cc |
+++ b/src/compiler/opcodes.cc |
@@ -25,7 +25,7 @@ char const* const kMnemonics[] = { |
// static |
char const* IrOpcode::Mnemonic(Value value) { |
- size_t const n = std::max<size_t>(value, arraysize(kMnemonics) - 1); |
+ size_t const n = std::min<size_t>(value, arraysize(kMnemonics) - 1); |
return kMnemonics[n]; |
} |