Fix an approximate calculation in an assertion not to give false negatives.
[oota-llvm.git] / lib / Support / ManagedStatic.cpp
index 85daaf8ba525f0949d4ec9e966ceb65bfc4c13d0..8de8ecd69f14dcbea4829eb9987ac790320241b5 100644 (file)
@@ -30,7 +30,7 @@ void ManagedStaticBase::RegisterManagedStatic(void *ObjPtr,
 }
 
 void ManagedStaticBase::destroy() const {
-  assert(Ptr && DeleterFn && "ManagedStatic not initialized correctly!");
+  assert(DeleterFn && "ManagedStatic not initialized correctly!");
   assert(StaticList == this &&
          "Not destroyed in reverse order of construction?");
   // Unlink from list.
@@ -46,7 +46,7 @@ void ManagedStaticBase::destroy() const {
 }
 
 /// llvm_shutdown - Deallocate and destroy all ManagedStatic variables.
-void llvm_shutdown() {
+void llvm::llvm_shutdown() {
   while (StaticList)
     StaticList->destroy();
 }