The patch fixes r321395, that cuased
 -Werror=unused-but-set-variable issue for
 Diagnosed var on prod build.

From: Evgeny Stupachenko <evstupac@gmail.com>
llvm-svn: 321854
This commit is contained in:
Evgeny Stupachenko 2018-01-05 02:22:52 +00:00
parent 33b89c5713
commit bf25d67b8c
1 changed files with 1 additions and 0 deletions

View File

@ -10660,6 +10660,7 @@ void ASTReader::diagnoseOdrViolations() {
Diagnosed = true;
break;
}
(void)Diagnosed;
assert(Diagnosed && "Unable to emit ODR diagnostic.");
}
}