From d0c619944ec652af83baa6d2e0e2e403c98a104f Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Tue, 30 Aug 2016 17:34:58 +0000 Subject: [PATCH] IR: Appease MSVC after r280107 with an & or two Fixes the bot: http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/15192 llvm-svn: 280116 --- llvm/unittests/IR/ModuleTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/unittests/IR/ModuleTest.cpp b/llvm/unittests/IR/ModuleTest.cpp index ef1652b3eb2e..c5f0bcb08f3e 100644 --- a/llvm/unittests/IR/ModuleTest.cpp +++ b/llvm/unittests/IR/ModuleTest.cpp @@ -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;