[LLVMbugs] [Bug 4678] New: "arguments were dropped" waring

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Aug 3 16:30:05 PDT 2009


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

           Summary: "arguments were dropped" waring
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Interprocedural Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Compiling the c++ program

void a(...) {
}
void b() {
  a(0);
}

produces the warning
WARNING: While resolving call to function '_Z1az' arguments were dropped!

At the llvm level this looks like


define void @_Z1az() {
entry:
        ret void
}
define void @_Z1bv() nounwind {
entry:
        call void (...)* bitcast (void ()* @_Z1az to void (...)*)(i32 0)
nounwind
        ret void
}

and the warning can be produced with

opt -std-compile-opts test.bc -disable-output


-- 
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