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 | 6bc6333a1059b0ee9b3b7c2685f4daf370ae67bd (patch) | |
tree | 8f1e40951145a5e14ee4d2796d18a36913c140a3 /lib/ExecutionEngine/Interpreter | |
parent | dfa1ec3bc24930cbc42283ee8337c0711580fe1f (diff) | |
download | external_llvm-6bc6333a1059b0ee9b3b7c2685f4daf370ae67bd.zip external_llvm-6bc6333a1059b0ee9b3b7c2685f4daf370ae67bd.tar.gz external_llvm-6bc6333a1059b0ee9b3b7c2685f4daf370ae67bd.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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Execution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index 98213c8..ddfaffd 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/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; } |