aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Type.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index cc682669ce..04780e9e3c 100644
--- a/include/llvm/Type.h
+++ b/include/llvm/Type.h
@@ -141,6 +141,11 @@ public:
//
inline bool isRecursive() const { return Recursive; }
+ // isLosslesslyConvertableTo - Return true if this type can be converted to
+ // 'Ty' without any reinterpretation of bits. For example, uint to int.
+ //
+ bool isLosslesslyConvertableTo(const Type *Ty) const;
+
//===--------------------------------------------------------------------===//
// Type Iteration support
//