LLVM - compile error - error: invalid integral value 'size' in '-Osize'

Hello everyone,

I was using LLVM 4.0.3 compiler and able to build my code. When I switch to LLVM 9.0.0, I got the following error:
error: invalid integral value ‘size’ in ‘-Osize’

I use sizeof() function but there is no variable defined as “size”.
How to resolve the error?
Thanks

Does your invocation of clang involve -Osize?

You probably mean -Os -Oz.

Thanks Nemanja for quick response.
Yes, I just realized that I used -Osize.
The issue is resolved.
Regards,
Dennis

Does your invocation of clang involve -Osize?

You probably mean -Os -Oz.