[LLVMbugs] [Bug 22030] 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.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 25 13:41:13 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=22030

            Bug ID: 22030
           Summary: 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.
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

-- 
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/20141225/17097329/attachment.html>


More information about the llvm-bugs mailing list