[C++] Use 'nullptr'. Target edition.
[oota-llvm.git] / lib / Target / Sparc / SparcTargetObjectFile.cpp
index f1630e0c319c62e00c99dca815e8bbdf6205ecdf..32b2240f87eaa53d2f9a901d1e01135e935f74b1 100644 (file)
@@ -28,7 +28,7 @@ const MCExpr *SparcELFTargetObjectFile::getTTypeGlobalReference(
     // Add information about the stub reference to ELFMMI so that the stub
     // gets emitted by the asmprinter.
     MachineModuleInfoImpl::StubValueTy &StubSym = ELFMMI.getGVStubEntry(SSym);
-    if (StubSym.getPointer() == 0) {
+    if (!StubSym.getPointer()) {
       MCSymbol *Sym = TM.getSymbol(GV, Mang);
       StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
     }