From: Roman Lebedev Date: Fri, 31 Aug 2018 08:59:15 +0000 (+0000) Subject: [XRay] FDRProducerConsumerTest: unbreak (gcc?) build X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8c22c0894ffc5719bce53dc4938054722bfcf66;p=platform%2Fupstream%2Fllvm.git [XRay] FDRProducerConsumerTest: unbreak (gcc?) build /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 --- 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();