File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -182,8 +182,8 @@ int main(int Argc, char *Argv[]) {
182
182
Status = amd_comgr_release_data (DataElement );
183
183
checkError (Status , "amd_comgr_release_data" );
184
184
185
- if (BytesSize != 0 ) {
186
- printf ("Bitcode host element size: %ld (expected 0 )\n" , BytesSize );
185
+ if (! BytesSize ) {
186
+ printf ("Bitcode host empty (expected non-empty )\n" );
187
187
exit (1 );
188
188
}
189
189
@@ -248,8 +248,8 @@ int main(int Argc, char *Argv[]) {
248
248
checkError (Status , "amd_comgr_release_data" );
249
249
250
250
if (BytesSize != 0 ) {
251
- printf ("Object host element size: %ld (expected empty)\n" , BytesSize );
252
- exit (1 );
251
+ printf ("Object host element size: %ld (expected empty)\n" , BytesSize );
252
+ exit (1 );
253
253
}
254
254
255
255
// object hip-gfx900 element (non-empty)
@@ -312,8 +312,8 @@ int main(int Argc, char *Argv[]) {
312
312
Status = amd_comgr_release_data (DataElement );
313
313
checkError (Status , "amd_comgr_release_data" );
314
314
315
- if (BytesSize != 8 ) {
316
- printf ("Arvhive host element size: %ld (expected 8 )\n" , BytesSize );
315
+ if (! BytesSize ) {
316
+ printf ("Arvhive host empty (expected non-empty )\n" );
317
317
exit (1 );
318
318
}
319
319
You can’t perform that action at this time.
0 commit comments