about summary refs log tree commit diff homepage
path: root/lib/Expr
diff options
context:
space:
mode:
authorMartin Nowack <martin.nowack@gmail.com>2013-08-27 22:03:50 +0200
committerMartin Nowack <martin.nowack@gmail.com>2013-08-28 08:54:50 +0200
commit1f0255ab650b59ef8acafb57b23900f7d89046f7 (patch)
tree9a20cdde76bc3f2fe93cc145c999600ab92b2786 /lib/Expr
parent45fa391391b57beecefd2cbcf3ce243d8aaea4f7 (diff)
downloadklee-1f0255ab650b59ef8acafb57b23900f7d89046f7.tar.gz
Fix constness warnings issued by gcc 4.7
Diffstat (limited to 'lib/Expr')
-rw-r--r--lib/Expr/Expr.cpp2
-rw-r--r--lib/Expr/Lexer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp
index 1187573b..a28ad907 100644
--- a/lib/Expr/Expr.cpp
+++ b/lib/Expr/Expr.cpp
@@ -342,7 +342,7 @@ void ConstantExpr::toMemory(void *address) {
   case Expr::Int64: *((uint64_t*) address) = getZExtValue(64); break;
   // FIXME: what about machines without x87 support?
   case Expr::Fl80:
-    *((long double*) address) = *(long double*) value.getRawData();
+    *((long double*) address) = *(const long double*) value.getRawData();
     break;
   }
 }
diff --git a/lib/Expr/Lexer.cpp b/lib/Expr/Lexer.cpp
index 95d6072b..9859ff36 100644
--- a/lib/Expr/Lexer.cpp
+++ b/lib/Expr/Lexer.cpp
@@ -54,7 +54,7 @@ const char *Token::getKindName() const {
 
 void Token::dump() {
   llvm::errs() << "(Token \"" << getKindName() << "\" "
-               << (void*) start << " " << length << " "
+               << (const void*) start << " " << length << " "
                << line << " " << column << ")";
 }