<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - lib/IR/Type.cpp:343: llvm::FunctionType::FunctionType(llvm::Type*, llvm::ArrayRef<llvm::Type*>, bool): Assertion `isValidRetu rnType(Result) && "invalid return type for function"' failed."
href="http://llvm.org/bugs/show_bug.cgi?id=22030">22030</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lib/IR/Type.cpp:343: llvm::FunctionType::FunctionType(llvm::Type*, llvm::ArrayRef<llvm::Type*>, bool): Assertion `isValidRetu rnType(Result) && "invalid return type for function"' failed.
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>david.majnemer@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>void f(int);
void a() {
asm ("":"=r" (f));
}
8 clang 0x0000000001fa9fb0
llvm::FunctionType::FunctionType(llvm::Type*, llvm::ArrayRef<llvm::Type*>,
bool) + 128
9 clang 0x0000000001faa1a2 llvm::FunctionType::get(llvm::Type*,
llvm::ArrayRef<llvm::Type*>, bool) + 276
10 clang 0x00000000028d5e35
clang::CodeGen::CodeGenFunction::EmitAsmStmt(clang::AsmStmt const&) + 6467
11 clang 0x00000000028ce18d
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 917
12 clang 0x00000000028ce9a3
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot) + 109
13 clang 0x00000000028f4d97
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&,
clang::Stmt const*) + 133
14 clang 0x00000000028f57c4
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 1692
15 clang 0x00000000029093f2
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 1350
16 clang 0x0000000002906369
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 487
17 clang 0x0000000002905c59
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 759
18 clang 0x000000000290cef7
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 307
19 clang 0x000000000287fac1
20 clang 0x00000000028690fa
21 clang 0x0000000003261a7b clang::ParseAST(clang::Sema&, bool, bool)
+ 553
22 clang 0x0000000002520fb8 clang::ASTFrontendAction::ExecuteAction()
+ 322
23 clang 0x000000000286b9e7 clang::CodeGenAction::ExecuteAction() +
1467
24 clang 0x0000000002520a93 clang::FrontendAction::Execute() + 139
25 clang 0x00000000024ea3d0
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 770
26 clang 0x0000000002631dbd
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 993
27 clang 0x00000000011b4206 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 770</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>