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

Commit 1e07827e authored by Yi Kong's avatar Yi Kong Committed by Gerrit Code Review
Browse files

Revert^3 "Workaround Clang hangs indefinitely"

This reverts commit facd91c1.

The latest Clang update has fixed the issue. Workaround no longer necessary.

Bug: 296850773
Bug: 353528991
Change-Id: I94ab2e02aefb6624dc60683ae996a1eedd6a511f
Test: presubmit
parent facd91c1
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();