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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits