Skip to content

Commit 32089db

Browse files
committed
Replace auto with explicit types in the RemoteJitUtils
1 parent 2efe5e9 commit 32089db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Interpreter/RemoteJITUtils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ createSharedMemoryManager(SimpleRemoteEPC &SREPC,
7979
#endif
8080

8181
if (!SlabAllocateSizeString.empty()) {
82-
if (auto S = getSlabAllocSize(SlabAllocateSizeString))
82+
if (Expected<uint64_t> S = getSlabAllocSize(SlabAllocateSizeString))
8383
SlabSize = *S;
8484
else
8585
return S.takeError();
@@ -162,7 +162,7 @@ launchExecutor(StringRef ExecutablePath, bool UseSharedMemory,
162162
close(ToExecutor[ReadEnd]);
163163
close(FromExecutor[WriteEnd]);
164164

165-
auto S = SimpleRemoteEPC::Setup();
165+
SimpleRemoteEPC::Setup S = SimpleRemoteEPC::Setup();
166166
if (UseSharedMemory)
167167
S.CreateMemoryManager = [SlabAllocateSizeString](SimpleRemoteEPC &EPC) {
168168
return createSharedMemoryManager(EPC, SlabAllocateSizeString);
@@ -254,7 +254,7 @@ connectTCPSocket(StringRef NetworkAddress, bool UseSharedMemory,
254254
if (!SockFD)
255255
return SockFD.takeError();
256256

257-
auto S = SimpleRemoteEPC::Setup();
257+
SimpleRemoteEPC::Setup S = SimpleRemoteEPC::Setup();
258258
if (UseSharedMemory)
259259
S.CreateMemoryManager = [SlabAllocateSizeString](SimpleRemoteEPC &EPC) {
260260
return createSharedMemoryManager(EPC, SlabAllocateSizeString);

0 commit comments

Comments
 (0)