]> granicus.if.org Git - clang/commit
Introduce getCorrespondingUnsignedType() in TargetInfo to work like the
authorJoerg Sonnenberger <joerg@bec.de>
Mon, 14 Jul 2014 20:40:56 +0000 (20:40 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Mon, 14 Jul 2014 20:40:56 +0000 (20:40 +0000)
commitcc82b4997ac4d607cc42a305e24bfd5c50b810aa
tree12bded7a12ef850e85f64c9e2d91abe74999ab0c
parent8ef0e08015c2016802eea5937c285338339bcc17
Introduce getCorrespondingUnsignedType() in TargetInfo to work like the
corresponding AST context function, only restricted to basic integer
types. Use this to ensure getUIntPtrType() gives types consistent with
getIntPtrType(). Fix NVPTX backend to give signed intptr_t.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212982 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TargetInfo.h
lib/Basic/Targets.cpp
test/Preprocessor/init.c