• Amol Bhave's avatar
    Fix CoroBenchmarkNRVO for non FOLLY_HAS_COROUTINE builds · f169a842
    Amol Bhave authored
    Summary:
    This code fails to compile when FOLLY_HAS_COROUTINES is false. This is
    because ExpensiveCopy is defined inside the if scope, and if that macro is
    false, then ExpensiveCopy never gets defined. Yet it gets used in the nestedCalls function.
    
    This diff fixes build for that case.
    
    Reviewed By: lewissbaker
    
    Differential Revision: D9663539
    
    fbshipit-source-id: 1c3dd70decab7db955c038cd5c476920bfa6ba53
    f169a842
CoroBenchmarkNRVO.cpp 4.48 KB