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[]) {
182182 Status = amd_comgr_release_data (DataElement );
183183 checkError (Status , "amd_comgr_release_data" );
184184
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" );
187187 exit (1 );
188188 }
189189
@@ -248,8 +248,8 @@ int main(int Argc, char *Argv[]) {
248248 checkError (Status , "amd_comgr_release_data" );
249249
250250 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 );
253253 }
254254
255255 // object hip-gfx900 element (non-empty)
@@ -312,8 +312,8 @@ int main(int Argc, char *Argv[]) {
312312 Status = amd_comgr_release_data (DataElement );
313313 checkError (Status , "amd_comgr_release_data" );
314314
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" );
317317 exit (1 );
318318 }
319319
You can’t perform that action at this time.
0 commit comments