diff options
-rw-r--r-- | include/llvm/Instruction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 2b025dd875..a5df154740 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -106,7 +106,7 @@ public: /// one of the enums that is coming soon (down below)... /// unsigned getOpcode() const { return getValueType() - InstructionVal; } - virtual const char *getOpcodeName() const { + const char *getOpcodeName() const { return getOpcodeName(getOpcode()); } static const char* getOpcodeName(unsigned OpCode); |