IR: Appease MSVC after r280107 with an & or two
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 30 Aug 2016 17:34:58 +0000 (17:34 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 30 Aug 2016 17:34:58 +0000 (17:34 +0000)
Fixes the bot:
http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/15192

llvm-svn: 280116

llvm/unittests/IR/ModuleTest.cpp

index ef1652b..c5f0bcb 100644 (file)
@@ -25,7 +25,7 @@ bool sortByNameReverse(const GlobalVariable &L, const GlobalVariable &R) {
 
 TEST(ModuleTest, sortGlobalsByName) {
   LLVMContext Context;
-  for (auto compare : {sortByName, sortByNameReverse}) {
+  for (auto compare : {&sortByName, &sortByNameReverse}) {
     Module M("M", Context);
     Type *T = Type::getInt8Ty(Context);
     GlobalValue::LinkageTypes L = GlobalValue::ExternalLinkage;