Fix stupid thinko


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75754 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Support/TargetRegistry.cpp b/lib/Support/TargetRegistry.cpp
index 258431a..258d703 100644
--- a/lib/Support/TargetRegistry.cpp
+++ b/lib/Support/TargetRegistry.cpp
@@ -123,7 +123,7 @@
          
   // Add to the list of targets.
   T.Next = FirstTarget;
-  FirstTarget = T.Next;
+  FirstTarget = &T;
 
   T.Name = Name;
   T.ShortDesc = ShortDesc;