[NFC] Fix GCC warning on enum/non-enum ternary thanks to 438863a0
On the above patch (https://github.com/llvm/llvm-project/commit/438863a09e2d907c36c4114228ef1eeee130e16b#commitcomment-161519239)
it was brought up that the commit 'caused' a GCC warning. The Hueristic
for the GCC warning is a little strange, but the fix is easy enough, so
this patch should fix it by making sure both sides of the ternary are
the same type.
diff --git a/clang/include/clang/Sema/Scope.h b/clang/include/clang/Sema/Scope.h
index 95f671c..757f3dc 100644
--- a/clang/include/clang/Sema/Scope.h
+++ b/clang/include/clang/Sema/Scope.h
@@ -298,7 +298,7 @@
// is disallowed despite being a continue scope.
void setIsConditionVarScope(bool InConditionVarScope) {
Flags = (Flags & ~ConditionVarScope) |
- (InConditionVarScope ? ConditionVarScope : 0);
+ (InConditionVarScope ? ConditionVarScope : NoScope);
}
bool isConditionVarScope() const {