[C++] Use 'nullptr'. Tools edition.
[oota-llvm.git] / tools / llvm-as / llvm-as.cpp
index 7583b121b45c9095bcdf95ece090d03e747ca8dc..70c95080e902792dad9055a4010f1cf0097c61c6 100644 (file)
@@ -94,7 +94,7 @@ int main(int argc, char **argv) {
   // Parse the file now...
   SMDiagnostic Err;
   std::unique_ptr<Module> M(ParseAssemblyFile(InputFilename, Err, Context));
-  if (M.get() == 0) {
+  if (!M.get()) {
     Err.print(argv[0], errs());
     return 1;
   }