-
Notifications
You must be signed in to change notification settings - Fork 769
[LIBCLC] Set charSize when calling __assertfail #6370
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
Conversation
/verify with intel/llvm-test-suite#1070 |
PR title: Sat -> Set? |
Yeap, also just noticed conflicts in llvm-test-suite, will fix now. |
91f772d
to
5700e9f
Compare
|
||
_CLC_DECL void __assert_fail(const char *expr, const char *file, | ||
unsigned int line, const char *func) { | ||
__assertfail(expr, file, line, func); | ||
__assertfail(expr, file, line, func, 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor and not that I would ever expect them to differ, but should this be
__assertfail(expr, file, line, func, 1); | |
__assertfail(expr, file, line, func, sizeof(char)); |
for good measure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @steffenlarsen, sorry was off last couple of days, I would normally agree, but in the PTX interoperability doc, they make an explicit point:
The only supported character size is 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Comment is not critical and the tests have been merged, so let's get this merged too.
The missing parameter was causing the incorrect formatting of the assert messages.