mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 13:10:42 +00:00
Fix a -Wpessimizing-move warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251495 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
81bbfcf379
commit
2412f42fae
@ -47,7 +47,7 @@ public:
|
||||
const Triple& TT = TM->getTargetTriple();
|
||||
|
||||
if (TT.getArch() == Triple::x86_64 && TT.isOSDarwin())
|
||||
return std::move(TM);
|
||||
return TM;
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user