summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/APValue.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-19 16:39:44 +0000
committerDan Gohman <gohman@apple.com>2010-04-19 16:39:44 +0000
commit145f3f1e83932a751ae434bafa42333d4cb2c157 (patch)
tree41277159366ba04f17145ce4e62d2377e2e046ff /clang/lib/AST/APValue.cpp
parent3457061a66e23a884a34ff4274f01f96ba4867e9 (diff)
downloadbcm5719-llvm-145f3f1e83932a751ae434bafa42333d4cb2c157.tar.gz
bcm5719-llvm-145f3f1e83932a751ae434bafa42333d4cb2c157.zip
Fix -Wcast-qual warnings.
llvm-svn: 101786
Diffstat (limited to 'clang/lib/AST/APValue.cpp')
-rw-r--r--clang/lib/AST/APValue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/APValue.cpp b/clang/lib/AST/APValue.cpp
index 50a6e0a50d8..731d5e04668 100644
--- a/clang/lib/AST/APValue.cpp
+++ b/clang/lib/AST/APValue.cpp
@@ -48,7 +48,8 @@ const APValue &APValue::operator=(const APValue &RHS) {
else if (isFloat())
setFloat(RHS.getFloat());
else if (isVector())
- setVector(((Vec*)(char*)RHS.Data)->Elts, RHS.getVectorLength());
+ setVector(((const Vec *)(const char *)RHS.Data)->Elts,
+ RHS.getVectorLength());
else if (isComplexInt())
setComplexInt(RHS.getComplexIntReal(), RHS.getComplexIntImag());
else if (isComplexFloat())
OpenPOWER on IntegriCloud