X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FValue.h;h=6d4d7cc74ac9bea27ed04d14d7e59f6f12fef077;hb=4b84086e89d86fb16f562166d9fea8df37db6be7;hp=26d2d1df4c65f66fd389285596694c3bb6b9143c;hpb=502a4f5162498ec420e3cb22f667808d726dd7da;p=oota-llvm.git diff --git a/include/llvm/Value.h b/include/llvm/Value.h index 26d2d1df4c6..6d4d7cc74ac 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(this)->stripPointerCasts(); + } }; inline std::ostream &operator<<(std::ostream &OS, const Value &V) {