[cfe-dev] [PATCH]Assert in codegen when compiling ternary operator without LHS in C++

Douglas Gregor dgregor at apple.com
Mon Aug 23 07:51:13 PDT 2010


On Aug 19, 2010, at 2:35 AM, Jean-Daniel Dupas wrote:

> Hello,
> 
> Actually clang does not support codegen for ternary operator without LHS in C++ (see bug #7726 ).
> 
> But in many cases it silently produces invalid code instead of raising an error. In other cases it calls EmitUnsupportedLValue().
> 
> To prevent this kind of issue, this patch add a EmitUnsupportedLValue() call that is unconditionally invoked as soon as clang try to generate code for this construct in C++ mode.

Thanks, committed as r111809!

	- Doug

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100823/ea2d95e4/attachment.html>


More information about the cfe-dev mailing list