diff options
author | JF Bastien <jfb@google.com> | 2016-03-26 18:20:02 +0000 |
---|---|---|
committer | JF Bastien <jfb@google.com> | 2016-03-26 18:20:02 +0000 |
commit | a874d1a40d2410f3e0d5f28a47c1217c02770cb0 (patch) | |
tree | a79b1f54acc1167cfdbad4d2b63ffe5d28e07630 /llvm/lib/CodeGen | |
parent | d4ff3360ae972da790834818b6b63f54037334d4 (diff) | |
download | bcm5719-llvm-a874d1a40d2410f3e0d5f28a47c1217c02770cb0.tar.gz bcm5719-llvm-a874d1a40d2410f3e0d5f28a47c1217c02770cb0.zip |
Revert "NFC: static_assert instead of comment"
This reverts commit fa36fcff16c7d4f78204d6296bf96c3558a4a672.
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
llvm-svn: 264516
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 99646d96196..bc99a069192 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -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)); } |