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