diff options
author | Greg Clayton <gclayton@apple.com> | 2015-01-28 01:33:37 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-01-28 01:33:37 +0000 |
commit | ccd2a6d95846e676a1aefabd1c9022cc2fb3d1db (patch) | |
tree | 6bc211a286556cd52eb5a4db4f5e4f2a217dda4f /llvm/lib/CodeGen/OptimizePHIs.cpp | |
parent | 33c9433ed4ad8edc1992b7996465cd50462237c1 (diff) | |
download | bcm5719-llvm-ccd2a6d95846e676a1aefabd1c9022cc2fb3d1db.tar.gz bcm5719-llvm-ccd2a6d95846e676a1aefabd1c9022cc2fb3d1db.zip |
Changes in 226712 needed some fixing as a platform is almost always selected and even if platform options are specified when doing a "target create" they would get ignored if a platform was already selected.
The change was made so we could re-use a platform if one was already created instead of creating a new one, but it would fail in the above case. To fix this, if we have a selected platform, we verify that the platform matches the current platform before we try to re-use it. We do this by asking the OptionGroupPlatform if the platform matches. If so, it returns true and we don't create a new platform, else we do.
llvm-svn: 227288
Diffstat (limited to 'llvm/lib/CodeGen/OptimizePHIs.cpp')
0 files changed, 0 insertions, 0 deletions