diff --git a/base/lazy_instance.h b/base/lazy_instance.h
index 874e87e6bf7d043afe3e9590cc7320151c341185..bdf5ce3fe6695549faaeb6533dbf47f45992483d 100644
--- a/base/lazy_instance.h
+++ b/base/lazy_instance.h
@@ -128,7 +128,8 @@ class LazyInstance : public LazyInstanceHelper {
       // Create the instance in the space provided by |buf_|.
       instance_ = Traits::New(buf_);
       // Traits::Delete will be null for LeakyLazyInstannceTraits
-      CompleteInstance(this, (Traits::Delete == NULL) ? NULL : OnExit);
+      void (*dtor)(void*) = Traits::Delete;
+      CompleteInstance(this, (dtor == NULL) ? NULL : OnExit);
     }
 
     // This annotation helps race detectors recognize correct lock-less