mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 13:40:30 +00:00
Revert "NFC: static_assert instead of comment"
This reverts commit fa36fcff16
.
Causes the following Windows failure:
C:\Buildbot\Slave\llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast\llvm.src\lib\CodeGen\MachineInstr.cpp(762):
error C2338: must be trivially copyable to memmove
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264516 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa36fcff16
commit
2b9ff6b8f4
@ -38,7 +38,6 @@
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/Support/type_traits.h"
|
||||
#include "llvm/Target/TargetInstrInfo.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
@ -758,8 +757,7 @@ static void moveOperands(MachineOperand *Dst, MachineOperand *Src,
|
||||
if (MRI)
|
||||
return MRI->moveOperands(Dst, Src, NumOps);
|
||||
|
||||
static_assert(isPodLike<MachineOperand>::value,
|
||||
"must be trivially copyable to memmove");
|
||||
// MachineOperand is a trivially copyable type so we can just use memmove.
|
||||
std::memmove(Dst, Src, NumOps * sizeof(MachineOperand));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user