Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64a1b6a5 authored by Liana Kazanova's avatar Liana Kazanova Committed by Gerrit Code Review
Browse files

Revert "Workaround Clang hangs indefinitely"

This reverts commit 38f082f0.

Reason for revert: Droidmonitor triggered revert due to build breakage in b/353213981. Will be verifying through ABTD before submission.

Change-Id: I43482457d1f1ca4bd5cf0812d82b9df91ebc98d4
parent 38f082f0
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -54,10 +54,6 @@ constexpr V1_0::PerformanceInfo kNoPerformanceInfo = {
        .execTime = std::numeric_limits<float>::max(),
        .powerUsage = std::numeric_limits<float>::max()};

// FIXME: This function causes Clang to hang indefinitely when building with
// -O1. Turn off optimization as a temporary workaround.
// http://b/296850773
#pragma clang optimize off
template <typename... Args>
auto makeCallbackReturn(Args&&... args) {
    return [argPack = std::make_tuple(std::forward<Args>(args)...)](const auto& cb) {
@@ -65,7 +61,6 @@ auto makeCallbackReturn(Args&&... args) {
        return Void();
    };
}
#pragma clang optimize on

sp<MockDevice> createMockDevice() {
    const auto mockDevice = MockDevice::create();