[LLVMbugs] [Bug 10650] New: assertion in EmitCallExprLValue

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 12 19:40:15 PDT 2011


           Summary: assertion in EmitCallExprLValue
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

This is the return of bug 10592. The new testcase is:

  struct Helper {
    unsigned long id() { return 0; }
  void test(Helper *obj) {
    int i = static_cast<const unsigned long&>(obj->id());

which triggers this assertion in codegen:

nlewycky at ducttape:~/local/delta-2006.08.03$ clang -cc1 -emit-llvm-only -x c++
-w z.c
clang: CGExpr.cpp:2296: clang::CodeGen::LValue
clang::CodeGen::CodeGenFunction::EmitCallExprLValue(const clang::CallExpr*):
Assertion `E->getCallReturnType()->isReferenceType() && "Can't have a scalar
return unless the return type is a " "reference type!"' failed.

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