projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c193c7
)
Change casting slightly to avoid warnings about casting away const.
author
Eli Friedman
<eli.friedman@gmail.com>
Thu, 5 Jan 2012 01:16:29 +0000
(
01:16
+0000)
committer
Eli Friedman
<eli.friedman@gmail.com>
Thu, 5 Jan 2012 01:16:29 +0000
(
01:16
+0000)
llvm-svn: 147589
clang/include/clang/AST/APValue.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/AST/APValue.h
b/clang/include/clang/AST/APValue.h
index
bc71385
..
f361f0f
100644
(file)
--- a/
clang/include/clang/AST/APValue.h
+++ b/
clang/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) {