r316179 - [CGExprScalar] Add missing types in function GetIntrinsic

2017-10-19 Thread Guozhi Wei via cfe-commits
Author: carrot Date: Thu Oct 19 13:11:23 2017 New Revision: 316179 URL: http://llvm.org/viewvc/llvm-project?rev=316179&view=rev Log: [CGExprScalar] Add missing types in function GetIntrinsic In function GetIntrinsic, not all types are covered. Types double and long long are missed, type long is

r315358 - [CGExprScalar] In EmitCompare trunc the result if it has different type as E->getType()

2017-10-10 Thread Guozhi Wei via cfe-commits
Author: carrot Date: Tue Oct 10 13:31:27 2017 New Revision: 315358 URL: http://llvm.org/viewvc/llvm-project?rev=315358&view=rev Log: [CGExprScalar] In EmitCompare trunc the result if it has different type as E->getType() Usually compare expression should return i1 type, so EmitScalarConversion i