[cfe-commits] [PATCH] lib/CodeGen/CGCall.cpp: Don't invoke multiple Builder.CreateBitCast() on Builder.CreateMemCpy. Or we would see sideeffect incompatibility among gcc and clang.

Douglas Gregor dgregor at apple.com
Thu Mar 10 07:24:47 PST 2011


On Mar 10, 2011, at 1:48 AM, John McCall wrote:

> On Mar 10, 2011, at 1:04 AM, NAKAMURA Takumi wrote:
> 
>> ---
>> lib/CodeGen/CGCall.cpp |    6 ++++--
>> 1 files changed, 4 insertions(+), 2 deletions(-)
>> 
>> IIRC, gcc evaluates right to left, and clang does left to right.
> 
> 
> Nice catch;  that's bitten us before.

Should we pull this into 2.9?

	- Doug



More information about the cfe-commits mailing list