Skip to content

Commit

Permalink
Fix nullable ptr usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Jan 29, 2024
1 parent 9f830eb commit a5450d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sw/driver/source_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void SourceFileStorage::add_unchecked1(const path &file_in, bool skip, const Str
auto nt = target.as<NativeCompiledTarget*>();
auto ho = nt && nt->HeaderOnly && nt->HeaderOnly.value();

if (nt->UseModules && nt->ImplicitHeaderUnits && isCppHeaderFileExtension(ext) && !skip)
if (nt && nt->UseModules && nt->ImplicitHeaderUnits && isCppHeaderFileExtension(ext) && !skip)
{
nt->add(HeaderUnit{file});
return;
Expand Down

0 comments on commit a5450d3

Please sign in to comment.