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
test.cpp
(184 bytes, text/plain)