Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert fail in case of WCHAR #10

Open
HuanjunWang opened this issue Dec 4, 2017 · 1 comment
Open

Assert fail in case of WCHAR #10

HuanjunWang opened this issue Dec 4, 2017 · 1 comment

Comments

@HuanjunWang
Copy link

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.

@shagfu
Copy link

shagfu commented Mar 28, 2018

llvm是强制类型校验,s16和s8类型不匹配,所以会报错,可以将key扩展s16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants