From a8c22c0894ffc5719bce53dc4938054722bfcf66 Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Fri, 31 Aug 2018 08:59:15 +0000 Subject: [PATCH] [XRay] FDRProducerConsumerTest: unbreak (gcc?) build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit /build/llvm/unittests/XRay/FDRProducerConsumerTest.cpp:90:27: error: declaration of ‘std::unique_ptr llvm::xray::{anonymous}::RoundTripTest::Record’ [-fpermissive] std::unique_ptr Record; ^~~~~~ In file included from /build/llvm/include/llvm/XRay/FDRLogBuilder.h:12, from /build/llvm/unittests/XRay/FDRProducerConsumerTest.cpp:15: /build/llvm/include/llvm/XRay/FDRRecords.h:28:7: error: changes meaning of ‘Record’ from ‘class llvm::xray::Record’ [-fpermissive] class Record { ^~~~~~ llvm-svn: 341189 --- llvm/unittests/XRay/FDRProducerConsumerTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/unittests/XRay/FDRProducerConsumerTest.cpp b/llvm/unittests/XRay/FDRProducerConsumerTest.cpp index 6f2aebe..8d6f0d9 100644 --- a/llvm/unittests/XRay/FDRProducerConsumerTest.cpp +++ b/llvm/unittests/XRay/FDRProducerConsumerTest.cpp @@ -79,7 +79,7 @@ public: H.CycleFrequency = 3e9; Writer = make_unique(OS, H); - Record = MakeRecord(); + Rec = MakeRecord(); } protected: @@ -87,7 +87,7 @@ protected: raw_string_ostream OS; XRayFileHeader H; std::unique_ptr Writer; - std::unique_ptr Record; + std::unique_ptr Rec; }; TYPED_TEST_CASE_P(RoundTripTest); @@ -95,7 +95,7 @@ TYPED_TEST_CASE_P(RoundTripTest); // This test ensures that the writing and reading implementations are in sync -- // that given write(read(write(R))) == R. TYPED_TEST_P(RoundTripTest, RoundTripsSingleValue) { - auto &R = this->Record; + auto &R = this->Rec; ASSERT_FALSE(errorToBool(R->apply(*this->Writer))); this->OS.flush(); -- 2.7.4