here are a couple of patches to address some warnings in Microsoft compilers, and a build error in vs2010 in particular<div><br></div><div>vs2010-errors.patch:</div><div>In SelectionDAGISel,  std::pairs or pointers are being constructed using a 0 as an initializer causes an error inside the std::pair constructor. I think changes to language in support of the nullptr keyword caused this break.</div>
<div><br></div><div>vs2010-warnings.patch:</div><div>This patch fixes a couple of annoying warnings that show up all over the place because they are in headers. At least for Microsoft compilers, conversion of a int to bool requires the compiler to convert non-zero to one and so the compiler warns of the performance issue. My fix is to explicitly perform the conversion so the compiler knows I'm aware and doesn't warn me. I don't know the behavior of other compilers in this respect, so I don't know if it should be committed. The other solution would be to change the return type of the accessors function to return ints, though this could move the warning elsewhere.</div>
<div><br></div><div>-Nathan</div><div><br></div>