Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Assertion when object returned by value is assigned to an identifier with an address_space qualifier #15370

Open Quuxplusone opened 11 years ago

Quuxplusone commented 11 years ago
Bugzilla Link PR15370
Status NEW
Importance P enhancement
Reported by Stephen Schiffli (sschiffli@gmail.com)
Reported on 2013-02-26 19:58:54 -0800
Last modified on 2013-02-26 19:58:54 -0800
Version trunk
Hardware PC Windows NT
CC llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments test.cpp (184 bytes, text/plain)
Blocks
Blocked by
See also
Created attachment 10091
Test case

I'm seeing the following assertion when using the head of clang:
Assertion failed: Elt->getType() == FTy->getParamType(ArgNo), file
..\..\..\..\..\..\llvm\tools\clang\lib\CodeGen\CGCall.cpp, line 1789

Using the following command line:
clang -S -emit-llvm test.cpp -o test.ll -O0
Quuxplusone commented 11 years ago

Attached test.cpp (184 bytes, text/plain): Test case