From 0a623596466d3f307184467121c6e0641b21266e Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Mon, 11 May 2015 13:11:38 +0000 Subject: [PATCH] Amends r236990, because I failed at hitting "save" before commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236991 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Support/TargetRegistry.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/unittests/Support/TargetRegistry.cpp b/unittests/Support/TargetRegistry.cpp index 7738e524094..2dd57fa7bf1 100644 --- a/unittests/Support/TargetRegistry.cpp +++ b/unittests/Support/TargetRegistry.cpp @@ -22,8 +22,7 @@ TEST(TargetRegistry, TargetHasArchType) { llvm::InitializeAllTargetInfos(); - llvm::TargetRegistry RegistryRoot; - for (auto &I = TargetRegistry::begin(), &E = TargetRegistry::end(); + for (auto I = TargetRegistry::begin(), E = TargetRegistry::end(); I != E; ++I) { StringRef Name = I->getName(); // There is really no way (at present) to ask a Target whether it targets -- 2.34.1