[llvm-bugs] [Bug 35737] New: BackendUtil's EmitAssemblyHelper::EmitAssembly generated call in wrong order
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Dec 23 19:14:05 PST 2017
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: unassignedclangbugs at nondot.org
Reporter: lesliezhai at llvm.org.cn
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171224/53ea95c5/attachment.html>
More information about the llvm-bugs
mailing list