summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-10-04 22:44:35 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-10-04 22:44:35 +0000
commit4b92c6b8e5bf07969c9376ad5acf24ba56f06c4d (patch)
tree5490de093bc22e6a1a7000ae578762a3a77485ca /llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
parent2e52f02864b92ad8a50e5d38635cf64312d0e02c (diff)
downloadbcm5719-llvm-4b92c6b8e5bf07969c9376ad5acf24ba56f06c4d.tar.gz
bcm5719-llvm-4b92c6b8e5bf07969c9376ad5acf24ba56f06c4d.zip
[SystemZ] Make operator bool explicit. NFC.
llvm-svn: 219069
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
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;
};
OpenPOWER on IntegriCloud