aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/CodeGen/MachineInstrTest.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-12-01 23:40:38 -0800
committerFangrui Song <i@maskray.me>2020-12-02 09:58:07 -0800
commit4d4bd40b578d77b8c5bc349ded405fb58c333c78 (patch)
tree3803ffeb0761c37df632479b4778c62bced6e7a6 /llvm/unittests/CodeGen/MachineInstrTest.cpp
parent92475f698ec20c153114da5ba88a2948c7cfae59 (diff)
downloadllvm-4d4bd40b578d77b8c5bc349ded405fb58c333c78.zip
llvm-4d4bd40b578d77b8c5bc349ded405fb58c333c78.tar.gz
llvm-4d4bd40b578d77b8c5bc349ded405fb58c333c78.tar.bz2
Use std::is_trivially_copyable
GCC<5 did not support std::is_trivially_copyable. Now LLVM builds require 5.1 we can migrate to std::is_trivially_copyable.
Diffstat (limited to 'llvm/unittests/CodeGen/MachineInstrTest.cpp')
-rw-r--r--llvm/unittests/CodeGen/MachineInstrTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/CodeGen/MachineInstrTest.cpp b/llvm/unittests/CodeGen/MachineInstrTest.cpp
index 33baaf62..7c9faec 100644
--- a/llvm/unittests/CodeGen/MachineInstrTest.cpp
+++ b/llvm/unittests/CodeGen/MachineInstrTest.cpp
@@ -383,6 +383,7 @@ TEST(MachineInstrExtraInfo, RemoveExtraInfo) {
ASSERT_FALSE(MI->getHeapAllocMarker());
}
-static_assert(is_trivially_copyable<MCOperand>::value, "trivially copyable");
+static_assert(std::is_trivially_copyable<MCOperand>::value,
+ "trivially copyable");
} // end namespace