Index: lib/Sema/SemaChecking.cpp |
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp |
index 05eaaec5792ae1c1c3bd0be9dda81b95381ad9e6..d8998cfff4fe0750150c9f61dd070d1c1aa7e8ef 100644 |
--- a/lib/Sema/SemaChecking.cpp |
+++ b/lib/Sema/SemaChecking.cpp |
@@ -6052,7 +6052,7 @@ static void DiagnoseOutOfRangeComparison(Sema &S, BinaryOperator *E, |
// TODO: Investigate using GetExprRange() to get tighter bounds |
// on the bit ranges. |
QualType OtherT = Other->getType(); |
- if (const AtomicType *AT = dyn_cast<AtomicType>(OtherT)) |
+ if (const auto *AT = OtherT->getAs<AtomicType>()) |
OtherT = AT->getValueType(); |
IntRange OtherRange = IntRange::forValueOfType(S.Context, OtherT); |
unsigned OtherWidth = OtherRange.Width; |