Target: x86_64-pc-windows-msvc
Assert failed at below line in case of WCHAR
BinaryOperator* int8_dec = BinaryOperator::Create(Instruction::Xor, int8_20, const_key, "xor", label_for_body);
int8_20 has a type with 16 bits and const_key has 8.
Changing const_key to 16 bits in case of wchar will fix this in my try, but you may have better solution.
Target: x86_64-pc-windows-msvc
Assert failed at below line in case of WCHAR
BinaryOperator* int8_dec = BinaryOperator::Create(Instruction::Xor, int8_20, const_key, "xor", label_for_body);
int8_20 has a type with 16 bits and const_key has 8.
Changing const_key to 16 bits in case of wchar will fix this in my try, but you may have better solution.