]> granicus.if.org Git - clang/commit
[CGExprScalar] Add missing types in function GetIntrinsic
authorGuozhi Wei <carrot@google.com>
Thu, 19 Oct 2017 20:11:23 +0000 (20:11 +0000)
committerGuozhi Wei <carrot@google.com>
Thu, 19 Oct 2017 20:11:23 +0000 (20:11 +0000)
commit65729bee4016e54916acac43fc98d5f435772239
tree55824462590a506afdfa041151ffdce7e45a15c9
parent73f05d57767628a433992d6e4a44846f106fd21d
[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 wrongly treated same as int, it should be same as long long. These problems cause compiler crashes when compiling code in PR31161. This patch fixed the problem.

Differential Revision: https://reviews.llvm.org/D38820

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316179 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprScalar.cpp
test/CodeGen/ppc-vector-compare.cc