Skip to content

Commit 6edd867

Browse files
committed
[SystemZ][z/OS] Replace assert with updated return statement to check if a file size will grow due to conversion
1 parent 4a5f82b commit 6edd867

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Basic/SourceManager.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,7 @@ bool needConversion(StringRef Filename) {
592592
#ifdef __MVS__
593593
llvm::ErrorOr<bool> NeedConversion =
594594
llvm::needzOSConversion(Filename.str().c_str());
595-
assert(NeedConversion && "Filename was not found");
596-
return *NeedConversion;
595+
return NeedConversion && *NeedConversion;
597596
#else
598597
return false;
599598
#endif

0 commit comments

Comments
 (0)