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

            Bug ID: 35737
           Summary: BackendUtil's EmitAssemblyHelper::EmitAssembly
                    generated call in wrong order
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangb...@nondot.org
          Reporter: lesliez...@llvm.org.cn
                CC: llvm-bugs@lists.llvm.org

Hi LLVM developers,

A C++ testcase:

#include <iostream>

int bar() {
  std::cout << "bar" << std::endl;
  return 1;
}

int main() {
  std::cout << "return: " << bar() << std::endl;
  return 0;
}

Wrong output:

return: bar
1

Correct output:

bar
return: 1

Regards,
Leslie Zhai

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to