Page MenuHomePhabricator

[GISel]: Fix incorrect IRTranslation while translating null pointer types
ClosedPublic

Authored by aditya_nandakumar on Mar 21 2018, 4:40 PM.

Details

Summary

Currently IRTranslator produces
%vreg17<def>(p0) = G_CONSTANT 0;

instead we should build
%vreg16(s64) = G_CONSTANT 0
%vreg17(p0) = G_INTTOPTR %vreg16

Diff Detail

Repository
rL LLVM