[llvm-commits] CVS: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
Reid Spencer
reid at x10sys.com
Thu Apr 26 11:19:53 PDT 2007
Changes in directory llvm/lib/ExecutionEngine/Interpreter:
Execution.cpp updated: 1.179 -> 1.180
---
Log message:
1. Don't swap byte order in scanf. It isn't necessary and leads to
incorrect results (canonicalization was dropped several commits ago).
2. Add support for fscanf.
3. Suppress a warning about cast to pointer from non-pointer-sized integer.
---
Diffs of the changes: (+1 -1)
Execution.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
diff -u llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.179 llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.180
--- llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.179 Tue Apr 17 12:38:28 2007
+++ llvm/lib/ExecutionEngine/Interpreter/Execution.cpp Thu Apr 26 13:19:35 2007
@@ -1073,7 +1073,7 @@
if (PtrSize != Src.IntVal.getBitWidth())
Src.IntVal = Src.IntVal.zextOrTrunc(PtrSize);
- Dest.PointerVal = (PointerTy) Src.IntVal.getZExtValue();
+ Dest.PointerVal = PointerTy(intptr_t(Src.IntVal.getZExtValue()));
return Dest;
}
More information about the llvm-commits
mailing list