1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Don't use "return {...}" to initialize a std::tuple. This has only been valid

since 2015 (n4387), though it's allowed by a library DR so new implementations
accept it in their C++11 modes...

This should unbreak the build with libstdc++ 4.9.

llvm-svn: 279583
This commit is contained in:
Richard Smith 2016-08-23 22:21:58 +00:00
parent c4bb029b55
commit 5a63bc1b55

View File

@ -111,9 +111,9 @@ MachineLegalizer::getAction(const MachineInstr &MI) const {
for (unsigned i = 0; i < MI.getNumTypes(); ++i) {
auto Action = getAction({MI.getOpcode(), i, MI.getType(i)});
if (Action.first != Legal)
return {Action.first, i, Action.second};
return std::make_tuple(Action.first, i, Action.second);
}
return {Legal, 0, LLT{}};
return std::make_tuple(Legal, 0, LLT{});
}
bool MachineLegalizer::isLegal(const MachineInstr &MI) const {