This is an archive of the discontinued LLVM Phabricator instance.

[CGExprScalar] Add missing types in function GetIntrinsic
ClosedPublic

Authored by Carrot on Oct 11 2017, 1:22 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

Carrot created this revision.Oct 11 2017, 1:22 PM
This revision is now accepted and ready to land.Oct 18 2017, 10:32 AM
This revision was automatically updated to reflect the committed changes.