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

Dennis Nguyen via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 3 12:20:53 PDT 2019


 Thanks Nemanja for quick response.Yes, I just realized that I used -Osize.The issue is resolved.Regards,Dennis
    On Thursday, October 3, 2019, 12:02:40 PM PDT, Nemanja Ivanovic <nemanja.i.ibm at gmail.com> wrote:  
 
 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/d0198b12/attachment.html>


More information about the llvm-dev mailing list