[PATCH] D18360: Add AIX Target/ToolChain to Clang Driver
WuZhao via cfe-commits
cfe-commits at lists.llvm.org
Mon May 23 00:59:35 PDT 2016
WuZhao added a subscriber: WuZhao.
WuZhao added a comment.
Hi , I find one mistake in the lib/Basic/Targets.cpp. On my AIX 7.1 machine /usr/include/sys/inttypes.h, 64 bits wchar_t is unsigned int, not signed int.
#ifndef _WCHAR_T
#define _WCHAR_T
#ifdef __64BIT__
typedef unsigned int wchar_t;
#else
typedef unsigned short wchar_t;
#endif
#endif /* _WCHAR_T */
So, the code should be
if (this->PointerWidth == 64) {
this->WCharType = this->UnsignedInt;
} else {
this->WCharType = this->UnsignedShort;
}
http://reviews.llvm.org/D18360
More information about the cfe-commits
mailing list