Remove unnecessary use of boost::make_optional

Closes #119.
This commit is contained in:
MerryMage 2017-11-28 20:56:49 +00:00
parent d00ce34432
commit 80c56aa89d
6 changed files with 6 additions and 6 deletions

View file

@ -388,7 +388,7 @@ HostLoc RegAlloc::SelectARegister(HostLocList desired_locations) const {
boost::optional<HostLoc> RegAlloc::ValueLocation(const IR::Inst* value) const {
for (size_t i = 0; i < HostLocCount; i++)
if (hostloc_info[i].ContainsValue(value))
return boost::make_optional<HostLoc>(static_cast<HostLoc>(i));
return static_cast<HostLoc>(i);
return boost::none;
}