summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/PointerSumType.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ADT/PointerSumType.h')
-rw-r--r--include/llvm/ADT/PointerSumType.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/PointerSumType.h b/include/llvm/ADT/PointerSumType.h
index 005b1c645c93..062544eedf84 100644
--- a/include/llvm/ADT/PointerSumType.h
+++ b/include/llvm/ADT/PointerSumType.h
@@ -94,7 +94,7 @@ public:
return HelperT::template Lookup<N>::TraitsT::getFromVoidPointer(getImpl());
}
- operator bool() const { return Value & HelperT::PointerMask; }
+ explicit operator bool() const { return Value & HelperT::PointerMask; }
bool operator==(const PointerSumType &R) const { return Value == R.Value; }
bool operator!=(const PointerSumType &R) const { return Value != R.Value; }
bool operator<(const PointerSumType &R) const { return Value < R.Value; }