[llvm-bugs] [Bug 24701] New: strstr is cut in conditional blocks (with -O1 option)

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 4 01:59:51 PDT 2015


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

            Bug ID: 24701
           Summary: strstr is cut in conditional blocks (with -O1 option)
           Product: clang
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: yoklmnprst at ya.ru
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 14839
  --> https://llvm.org/bugs/attachment.cgi?id=14839&action=edit
sample which we need to compile

try to compile sample (in attachment) with follow options:
clang++ main.cpp -o main.bc -O1  -D__extern_always_inline=inline -S -emit-llvm

And file "main.bc" doesn't contain any condition and logic:
....
define i32 @main(i32 %argc, i8** nocapture readnone %argv) #0 {
  ret i32 0
}
...

In attachment you could find:
sample main.cpp
result of preprocessing (-E compile option) main.i
llvm asm (-S -emit-llvm) main.bc

-- 
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/20150904/76bf0390/attachment.html>


More information about the llvm-bugs mailing list