r240196 - Yet another MSVC-related fix.

Douglas Gregor dgregor at apple.com
Fri Jun 19 16:59:55 PDT 2015


Author: dgregor
Date: Fri Jun 19 18:59:55 2015
New Revision: 240196

URL: http://llvm.org/viewvc/llvm-project?rev=240196&view=rev
Log:
Yet another MSVC-related fix.

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=240196&r1=240195&r2=240196&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Fri Jun 19 18:59:55 2015
@@ -5068,7 +5068,7 @@ bool Sema::checkNullabilityTypeSpecifier
       // annotation, complain about it.
       if (fileNullability.PointerLoc.isValid()) {
         Diag(fileNullability.PointerLoc, diag::warn_nullability_missing)
-          << fileNullability.PointerKind;
+          << static_cast<unsigned>(fileNullability.PointerKind);
       }
 
       fileNullability.SawTypeNullability = true;





More information about the cfe-commits mailing list