Make Scalar::SChar return an explicit signed type

This is needed for platforms where the default "char" type is unsigned.

Originally committed as part of (now reverted) r266311.

llvm-svn: 266420
This commit is contained in:
Ulrich Weigand 2016-04-15 09:15:47 +00:00
parent fb7207ef89
commit 9a0fdfe009
2 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ public:
unsigned char
UChar(unsigned char fail_value = 0) const;
char
signed char
SChar(char fail_value = 0) const;
unsigned short

View File

@ -1380,7 +1380,7 @@ Scalar::MakeSigned ()
return success;
}
char
signed char
Scalar::SChar(char fail_value) const
{
switch (m_type)