From 03bea79b23827459f8b1d1b3d76ad2e8b677ddb3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 16 Jun 2008 06:43:06 +0000 Subject: [PATCH] add a const version of stripPointerCasts llvm-svn: 52305 --- llvm/include/llvm/Value.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/Value.h b/llvm/include/llvm/Value.h index 26d2d1df4c65..6d4d7cc74ac9 100644 --- a/llvm/include/llvm/Value.h +++ b/llvm/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(this)->stripPointerCasts(); + } }; inline std::ostream &operator<<(std::ostream &OS, const Value &V) {