mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 15:33:16 +00:00
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
This commit is contained in:
parent
dfa1ec3bc2
commit
6bc6333a10
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user