Skip to content

Commit 8a6ee37

Browse files
committed
Improve assert
1 parent 955f1a2 commit 8a6ee37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Frontend/ArgsToFrontendOptionsConverter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,7 @@ bool ArgsToFrontendOptionsConverter::computeModuleAliases() {
560560
}
561561

562562
bool ArgsToFrontendOptionsConverter::computeModuleName() {
563-
// Module alias (if any) should be computed after module name is computed
564-
assert(Opts.ModuleAliasMap.empty());
563+
assert(Opts.ModuleAliasMap.empty() && "Module name must be computed before computing module aliases");
565564

566565
const Arg *A = Args.getLastArg(options::OPT_module_name);
567566
if (A) {

0 commit comments

Comments
 (0)