diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-10-04 22:44:35 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-10-04 22:44:35 +0000 |
| commit | 4b92c6b8e5bf07969c9376ad5acf24ba56f06c4d (patch) | |
| tree | 5490de093bc22e6a1a7000ae578762a3a77485ca /llvm/lib/Target/SystemZ | |
| parent | 2e52f02864b92ad8a50e5d38635cf64312d0e02c (diff) | |
| download | bcm5719-llvm-4b92c6b8e5bf07969c9376ad5acf24ba56f06c4d.tar.gz bcm5719-llvm-4b92c6b8e5bf07969c9376ad5acf24ba56f06c4d.zip | |
[SystemZ] Make operator bool explicit. NFC.
llvm-svn: 219069
Diffstat (limited to 'llvm/lib/Target/SystemZ')
| -rw-r--r-- | llvm/lib/Target/SystemZ/SystemZElimCompare.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZElimCompare.cpp b/llvm/lib/Target/SystemZ/SystemZElimCompare.cpp index 1ea02984f3d..ce99ee5bc41 100644 --- a/llvm/lib/Target/SystemZ/SystemZElimCompare.cpp +++ b/llvm/lib/Target/SystemZ/SystemZElimCompare.cpp @@ -47,7 +47,7 @@ struct Reference { return *this; } - operator bool() const { return Def || Use; } + LLVM_EXPLICIT operator bool() const { return Def || Use; } // True if the register is defined or used in some form, either directly or // via a sub- or super-register. diff --git a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp index f58ab474fbb..8ff9553ca08 100644 --- a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp +++ b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp @@ -633,7 +633,7 @@ struct LogicOp { LogicOp(unsigned regSize, unsigned immLSB, unsigned immSize) : RegSize(regSize), ImmLSB(immLSB), ImmSize(immSize) {} - operator bool() const { return RegSize; } + LLVM_EXPLICIT operator bool() const { return RegSize; } unsigned RegSize, ImmLSB, ImmSize; }; |

