What's the difference between `ConstantInt::getTrue (LLVMContext &Context)` and `ConstantInt::getTrue (Type *Ty)`?

Viewed 104
1 Answers

The former constructs a ConstantInt which has i1 type, while the latter allows you to specify the type yourself. This might be useful to construct i8 0, i16 1 and like that.

Related