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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to