aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/Interpreter/Execution.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-05-16 16:39:29 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-05-16 16:39:29 +0000
commit52811bdbf06e68f67ff6d526899d1c21270ca181 (patch)
treee2da0d3e251fc4c585054aed800d2eb2792ede79 /lib/ExecutionEngine/Interpreter/Execution.cpp
parent53c3a333a470dafd0160e64da2f196e7121cdf3f (diff)
downloadexternal_llvm-52811bdbf06e68f67ff6d526899d1c21270ca181.zip
external_llvm-52811bdbf06e68f67ff6d526899d1c21270ca181.tar.gz
external_llvm-52811bdbf06e68f67ff6d526899d1c21270ca181.tar.bz2
Avoid a "loss of precision" error in gcc 4.1.3.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index 8231001..30ca4f6 100644
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -1344,7 +1344,7 @@ static void PrintGenericValue(const GenericValue &Val, const Type* Ty) {
case Type::VoidTyID: DOUT << "void"; break;
case Type::FloatTyID: DOUT << "float " << Val.FloatVal; break;
case Type::DoubleTyID: DOUT << "double " << Val.DoubleVal; break;
- case Type::PointerTyID: DOUT << "void* " << unsigned(Val.PointerVal); break;
+ case Type::PointerTyID: DOUT << "void* " << intptr_t(Val.PointerVal); break;
case Type::IntegerTyID:
DOUT << "i" << Val.IntVal.getBitWidth() << " " << Val.IntVal.toString(10)
<< "\n";