diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-26 18:19:35 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-26 18:19:35 +0000 |
| commit | 1d48207f5b9529aea29a5186800179aca365900c (patch) | |
| tree | 78a4097326e4d128de13cf0677068124e0e4bc6d /llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | |
| parent | 68f72b17f247e5b3135c187753abaac0e0b1d115 (diff) | |
| download | llvm-1d48207f5b9529aea29a5186800179aca365900c.zip llvm-1d48207f5b9529aea29a5186800179aca365900c.tar.gz llvm-1d48207f5b9529aea29a5186800179aca365900c.tar.bz2 | |
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.
llvm-svn: 36482
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Execution.cpp')
| -rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 98213c8..ddfaffd 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -1073,7 +1073,7 @@ GenericValue Interpreter::executeIntToPtrInst(Value *SrcVal, const Type *DstTy, 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; } |
