diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Support/TargetRegistry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/TargetRegistry.cpp b/llvm/lib/Support/TargetRegistry.cpp index 258431a9372..258d703d16d 100644 --- a/llvm/lib/Support/TargetRegistry.cpp +++ b/llvm/lib/Support/TargetRegistry.cpp @@ -123,7 +123,7 @@ void TargetRegistry::RegisterTarget(Target &T, // Add to the list of targets. T.Next = FirstTarget; - FirstTarget = T.Next; + FirstTarget = &T; T.Name = Name; T.ShortDesc = ShortDesc; |

