aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Value.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r--include/llvm/Value.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index 26d2d1df4c..6d4d7cc74a 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -226,6 +226,9 @@ public:
/// casts from the specified value, returning the original uncasted value.
/// Note that the returned value is guaranteed to have pointer type.
Value *stripPointerCasts();
+ const Value *stripPointerCasts() const {
+ return const_cast<Value*>(this)->stripPointerCasts();
+ }
};
inline std::ostream &operator<<(std::ostream &OS, const Value &V) {