]> granicus.if.org Git - clang/commit
Fix Windows64 target info so pointer arithmetic is done correctly, and no sign extens...
authorCameron Esfahani <dirty@apple.com>
Wed, 15 Sep 2010 00:28:12 +0000 (00:28 +0000)
committerCameron Esfahani <dirty@apple.com>
Wed, 15 Sep 2010 00:28:12 +0000 (00:28 +0000)
commit1484e0da648e1aa3a68f7114bb771a6ca57f5316
treea524fe90167f5caec6703aa2264d6d1e8b1d3dc4
parent09246183715f4b0a8728a3827bfe894b6c6016b9
Fix Windows64 target info so pointer arithmetic is done correctly, and no sign extension code is emitted: PtrDiffType needs to be a signed long long.  Add a corresponding test case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113910 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/CodeGen/pointer-signext.c [new file with mode: 0644]