From: Aaron Ballman Date: Mon, 11 May 2015 13:11:38 +0000 (+0000) Subject: Amends r236990, because I failed at hitting "save" before commit. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0a623596466d3f307184467121c6e0641b21266e;p=oota-llvm.git 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 --- 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