1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00
Artem Belevich f4a6455e0c [NVPTX] do not rely on cached subtarget info.
If a module has function references, but no functions
themselves, we may end up never calling runOnMachineFunction
and therefore would never initialize nvptxSubtarget field
which would eventually cause a crash.

Instead of relying on nvptxSubtarget being initialized by
one of the methods, retrieve subtarget info directly.

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

llvm-svn: 348952
2018-12-12 18:31:04 +00:00
..
2018-07-30 19:41:25 +00:00
2018-06-28 20:05:35 +00:00
2018-06-28 20:05:35 +00:00
2018-06-28 20:05:35 +00:00
2018-06-28 20:05:35 +00:00