diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2015-05-11 13:11:38 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2015-05-11 13:11:38 +0000 |
commit | ff82fce1c09d27f5d11bed76f44eb14d9d764180 (patch) | |
tree | c428a3e92d1661757b544e9e6e4527d731990046 /llvm/unittests/Support | |
parent | 73cb576c35bd1368e00a2160f2cd935d70908e23 (diff) | |
download | bcm5719-llvm-ff82fce1c09d27f5d11bed76f44eb14d9d764180.tar.gz bcm5719-llvm-ff82fce1c09d27f5d11bed76f44eb14d9d764180.zip |
Amends r236990, because I failed at hitting "save" before commit.
llvm-svn: 236991
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r-- | llvm/unittests/Support/TargetRegistry.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/unittests/Support/TargetRegistry.cpp b/llvm/unittests/Support/TargetRegistry.cpp index 7738e524094..2dd57fa7bf1 100644 --- a/llvm/unittests/Support/TargetRegistry.cpp +++ b/llvm/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 |