--- Reverse-merging r80908 into '.':
[oota-llvm.git] / lib / Analysis / ProfileInfoLoaderPass.cpp
index e79dd8c0c22f00e34d2ef8cbdb16b47ea4ae5536..1a2332c0e994bf05869cee7b09a090fe32c1a498 100644 (file)
@@ -159,7 +159,7 @@ void LoaderPass::recurseBasicBlock(const BasicBlock *BB) {
 void LoaderPass::readOrRememberEdge(ProfileInfo::Edge e,
                                     unsigned weight, unsigned ei,
                                     Function *F) {
-  if (weight != ~0U) {
+  if (weight != (unsigned)MissingValue) {
     EdgeInformation[F][e] += weight;
     DEBUG(errs()<<"--Read Edge Counter for " << e 
                 <<" (# "<<ei<<"): "<<(unsigned)getEdgeWeight(e)<<"\n");