[llvm-dev] LLVM - compile error - error: invalid integral value 'size' in '-Osize'

Nemanja Ivanovic via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 3 12:02:26 PDT 2019


Does your invocation of clang involve -Osize?
You probably mean -Os -Oz.

On Thu, Oct 3, 2019 at 2:56 PM Dennis Nguyen via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> 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
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191003/5c703cca/attachment.html>


More information about the llvm-dev mailing list