r286525 - [Sema] Fix-up for MSVC, which is stricter about template types.
Jordan Rose via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 10 15:41:18 PST 2016
Author: jrose
Date: Thu Nov 10 17:41:18 2016
New Revision: 286525
URL: http://llvm.org/viewvc/llvm-project?rev=286525&view=rev
Log:
[Sema] Fix-up for MSVC, which is stricter about template types.
Modified:
cfe/trunk/lib/Sema/SemaType.cpp
Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=286525&r1=286524&r2=286525&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Thu Nov 10 17:41:18 2016
@@ -3545,7 +3545,7 @@ static void recordNullabilitySeen(Sema &
S.Diag(fileNullability.PointerLoc, diag::warn_nullability_missing_array);
} else {
S.Diag(fileNullability.PointerLoc, diag::warn_nullability_missing)
- << fileNullability.PointerKind;
+ << static_cast<unsigned>(fileNullability.PointerKind);
}
}
More information about the cfe-commits
mailing list