Silence some MSVC false positive warnings about integer zexts and falling off the end of a covered switch

llvm-svn: 260411
This commit is contained in:
Reid Kleckner
2016-02-10 19:09:15 +00:00
parent 66b7807403
commit d16cebef5d
3 changed files with 3 additions and 2 deletions

View File

@@ -309,7 +309,7 @@ StringRef CodeCompletionTUInfo::getParentName(const DeclContext *DC) {
if (!Interface) {
// Assign an empty StringRef but with non-null data to distinguish
// between empty because we didn't process the DeclContext yet.
CachedParentName = StringRef((const char *)~0U, 0);
CachedParentName = StringRef((const char *)(uintptr_t)~0U, 0);
return StringRef();
}