diff options
Diffstat (limited to 'llvm/tools/llvm-mca/include/Instruction.h')
-rw-r--r-- | llvm/tools/llvm-mca/include/Instruction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mca/include/Instruction.h b/llvm/tools/llvm-mca/include/Instruction.h index ca84b86d70d..a1d1082a215 100644 --- a/llvm/tools/llvm-mca/include/Instruction.h +++ b/llvm/tools/llvm-mca/include/Instruction.h @@ -444,7 +444,7 @@ public: const Instruction *getInstruction() const { return Data.second; } /// Returns true if this references a valid instruction. - bool isValid() const { return Data.second; } + operator bool() const { return Data.second != nullptr; } /// Invalidate this reference. void invalidate() { Data.second = nullptr; } |