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

John McCall rjmccall at apple.com
Thu Mar 10 01:48:37 PST 2011


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.

John.



More information about the cfe-commits mailing list