r321854 - NFC.
Evgeny Stupachenko via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 4 18:22:52 PST 2018
Author: evstupac
Date: Thu Jan 4 18:22:52 2018
New Revision: 321854
URL: http://llvm.org/viewvc/llvm-project?rev=321854&view=rev
Log:
NFC.
The patch fixes r321395, that cuased
-Werror=unused-but-set-variable issue for
Diagnosed var on prod build.
From: Evgeny Stupachenko <evstupac at gmail.com>
Modified:
cfe/trunk/lib/Serialization/ASTReader.cpp
Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=321854&r1=321853&r2=321854&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Thu Jan 4 18:22:52 2018
@@ -10660,6 +10660,7 @@ void ASTReader::diagnoseOdrViolations()
Diagnosed = true;
break;
}
+ (void)Diagnosed;
assert(Diagnosed && "Unable to emit ODR diagnostic.");
}
}
More information about the cfe-commits
mailing list