[LLVMbugs] [Bug 13594] New: Wrong start location for getRetValue() expression

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 13 05:25:25 PDT 2012


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

             Bug #: 13594
           Summary: Wrong start location for getRetValue() expression
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sergejs.belajevs at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


struct Str
{
  Str(const char*);
};

Str foo()
{
  return "";
}

In the AST of the above code, start location of getRetValue() points to the
return token instead of "". In my code, when I try to print return statement as 

"return " + ExprToString(ret->getRetValue()) + ";"

I get 'return return "";'.

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