[llvm-bugs] [Bug 43925] New: [ubsan] object-size sanitizer complains about -O0 on clang-cl

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 6 14:33:39 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=43925

            Bug ID: 43925
           Summary: [ubsan] object-size sanitizer complains about -O0 on
                    clang-cl
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dmajor at mozilla.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    vsk at apple.com

`OptLevel` here is null even when I pass -O2:
https://github.com/llvm/llvm-project/blame/941660299ac6d30919af9d943794a2ac516112fc/clang/lib/Driver/SanitizerArgs.cpp#L270

I would guess that this comes from the clang-cl driver having its own style of
-O flags, for example it understands things like -Od but not -O3.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191106/7433b89b/attachment.html>


More information about the llvm-bugs mailing list