[ADT] Add move operations to SmallVector<T,N> from SmallVectorImpl<T>.
[oota-llvm.git] / unittests / ADT / APIntTest.cpp
index a6578869022e92082e03874d0fe287d8f9f8c284..3b7ac5b89402960959415bde6dfb4328a427dd6b 100644 (file)
@@ -679,6 +679,9 @@ TEST(APIntTest, nearestLogBase2) {
 }
 
 #if defined(__clang__)
+// Disable the pragma warning from versions of Clang without -Wself-move
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunknown-pragmas"
 // Disable the warning that triggers on exactly what is being tested.
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wself-move"
@@ -701,5 +704,6 @@ TEST(APIntTest, SelfMoveAssignment) {
 }
 #if defined(__clang__)
 #pragma clang diagnostic pop
+#pragma clang diagnostic pop
 #endif
 }