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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to