Amends r236990, because I failed at hitting "save" before commit.
authorAaron Ballman <aaron@aaronballman.com>
Mon, 11 May 2015 13:11:38 +0000 (13:11 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 11 May 2015 13:11:38 +0000 (13:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236991 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Support/TargetRegistry.cpp

index 7738e52409402d2472e87655116c6f90ca60ea05..2dd57fa7bf186a0cc5f9759d3fc3c596f7535531 100644 (file)
@@ -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