[LLVMdev] c char translated to i8 signext

Ryan M. Lefever lefever at crhc.uiuc.edu
Wed Apr 30 10:55:26 PDT 2008

I have a c function that takes a char as a parameter.  When it is 
compiled to bytecode, it gets translated to i8 signext.  Why is signext 
getting added to the type?  It doesn't get added if the parameter is an 
int.  Is there a way to alter the parameter in the c code so that it 
simply gets translated to an i8, or is there a way in LLVM to modify the 
parameter's type?

By the way, I am using LLVM 2.1 in case this has been changed since then.


More information about the llvm-dev mailing list