Silence more static analyzer warnings.

Add in definedness checks for shift operators, null checks when
pointers are assumed by the code to be non-null, and explicit
unreachables.

llvm-svn: 224255
This commit is contained in:
Michael Ilseman
2014-12-15 18:48:43 +00:00
parent b736bf3899
commit addddc441f
13 changed files with 45 additions and 11 deletions

View File

@@ -181,6 +181,8 @@ void IRObjectFile::moveSymbolNext(DataRefImpl &Symb) const {
Res = (Index << 2) | 3;
break;
}
default:
llvm_unreachable("unreachable case");
}
Symb.p = Res;