@@ -160,7 +160,7 @@ findModule(ASTContext &ctx, AccessPathElem moduleID,
160
160
moduleBuffer, moduleDocBuffer,
161
161
scratch);
162
162
163
- if (err == std::errc::no_such_file_or_directory) {
163
+ if (err == std::errc::no_such_file_or_directory) {
164
164
addDiagnosticInfoForArchitectureMismatch (
165
165
ctx, moduleID.second , moduleName, archName, currPath);
166
166
return false ;
@@ -183,12 +183,9 @@ findModule(ASTContext &ctx, AccessPathElem moduleID,
183
183
return false ;
184
184
}
185
185
186
- llvm::sys::path::append (currPath,
187
- " Modules" , moduleFilename.str ());
188
- auto err = openModuleFiles (currPath,
189
- archFile.str (), archDocFile.str (),
190
- moduleBuffer, moduleDocBuffer,
191
- scratch);
186
+ llvm::sys::path::append (currPath, " Modules" , moduleFilename.str ());
187
+ auto err = openModuleFiles (currPath, archFile.str (), archDocFile.str (),
188
+ moduleBuffer, moduleDocBuffer, scratch);
192
189
193
190
if (err == std::errc::no_such_file_or_directory) {
194
191
addDiagnosticInfoForArchitectureMismatch (
0 commit comments