diff options
| author | Matt Davis <Matthew.Davis@sony.com> | 2018-10-24 20:27:47 +0000 | 
|---|---|---|
| committer | Matt Davis <Matthew.Davis@sony.com> | 2018-10-24 20:27:47 +0000 | 
| commit | b5d5debdbcd8e78c84861cce48093f68a7b8acb6 (patch) | |
| tree | 3010bdc34efd0c81f9770975d53b05d145fb823f /llvm/tools/llvm-mca/include | |
| parent | 953bdce68db36f1fec5299f9525b1b87c491a8a8 (diff) | |
| download | bcm5719-llvm-b5d5debdbcd8e78c84861cce48093f68a7b8acb6.tar.gz bcm5719-llvm-b5d5debdbcd8e78c84861cce48093f68a7b8acb6.zip | |
[llvm-mca] Replace InstRef::isValid with operator bool. NFC.
llvm-svn: 345190
Diffstat (limited to 'llvm/tools/llvm-mca/include')
| -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; } | 

