diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-01-05 01:16:29 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-01-05 01:16:29 +0000 |
commit | b6cc6d728e9b151defe9e6041aaeb000f6e20c24 (patch) | |
tree | c9e460fcc4d11f49f109a43d45f9dc73f1d46cb3 /include/clang | |
parent | 447af24a003aa8d0dc7317a56f06f5b8361f8808 (diff) |
Change casting slightly to avoid warnings about casting away const.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/AST/APValue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/APValue.h b/include/clang/AST/APValue.h index bc7138565b..f361f0f5c8 100644 --- a/include/clang/AST/APValue.h +++ b/include/clang/AST/APValue.h @@ -329,11 +329,11 @@ public: const AddrLabelExpr* getAddrLabelDiffLHS() const { assert(isAddrLabelDiff() && "Invalid accessor"); - return ((AddrLabelDiffData*)(char*)Data)->LHSExpr; + return ((const AddrLabelDiffData*)(const char*)Data)->LHSExpr; } const AddrLabelExpr* getAddrLabelDiffRHS() const { assert(isAddrLabelDiff() && "Invalid accessor"); - return ((AddrLabelDiffData*)(char*)Data)->RHSExpr; + return ((const AddrLabelDiffData*)(const char*)Data)->RHSExpr; } void setInt(const APSInt &I) { |