[LLVMbugs] [Bug 10657] New: Assertion `CurFn->isDeclaration() && "Function already has body?"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 15 06:26:24 PDT 2011


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

           Summary: Assertion `CurFn->isDeclaration() && "Function already
                    has body?"' failed
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jirislaby at gmail.com
                CC: llvmbugs at cs.uiuc.edu


I'm using trunk. The topmost clang commit is:
commit 7c5109b0322058c1fb80222b71b380b2c7b10d4e
Author: Jeffrey Yasskin <jyasskin at google.com>
Date:   Sat Aug 13 05:47:04 2011 +0000

    Fix C++0x narrowing conversion errors in Clang.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137552
91177308-0d34-0410-b5e6-96231b3b80d8

For llvm:
commit 7dcd04abe0b0b1dbfb285faea2daece50f9aa502
Author: Bob Wilson <bob.wilson at apple.com>
Date:   Sat Aug 13 05:14:55 2011 +0000

    Expand VMOVQQQQ pseudo instructions.

    Apparently we never added code to expand these pseudo instructions, and in
    over a year, no one has noticed.  Our register allocator must be awesome!

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137551
91177308-0d34-0410-b5e6-96231b3b80d8

$ ~/repos/llvm-build/bin/clang -c ../net/ipv4/ip_output.i -o /dev/null -O0 -w 
clang-3.0:
/home/latest/repos/llvm/tools/clang/lib/CodeGen/CodeGenFunction.cpp:254: void
clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl,
clang::QualType, llvm::Function*, const clang::CodeGen::CGFunctionInfo&, const
clang::CodeGen::FunctionArgList&, clang::SourceLocation): Assertion
`CurFn->isDeclaration() && "Function already has body?"' failed.
Stack dump:
0.      Program arguments: /home/latest/repos/llvm-build/bin/clang-3.0 -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name ip_output.i -mrelocation-model static -mdisable-fp-elim
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-momit-leaf-frame-pointer -coverage-file /dev/null -resource-dir
/home/latest/repos/llvm-build/bin/../lib/clang/3.0 -O0 -w -ferror-limit 19
-fmessage-length 149 -fdiagnostics-show-option -fcolor-diagnostics -o /dev/null
-x cpp-output ../net/ipv4/ip_output.i 
1.      /home/latest/linux1/net/ipv4/ip_output.c:1421:45: current parser token
'extern'
2.      /home/latest/linux1/net/ipv4/ip_output.c:1421:30: LLVM IR generation of
declaration 'ip_send_check'
3.      /home/latest/linux1/net/ipv4/ip_output.c:86:17: Generating code for
declaration 'ip_send_check'
clang-3: error: unable to execute command: Aborted
clang-3: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang-3: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang-3: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list