Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit b161c80

Browse files
committed
IR: Appease MSVC after r280107 with an & or two
Fixes the bot: http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/15192 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280116 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent f097e13 commit b161c80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittests/IR/ModuleTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ bool sortByNameReverse(const GlobalVariable &L, const GlobalVariable &R) {
2525

2626
TEST(ModuleTest, sortGlobalsByName) {
2727
LLVMContext Context;
28-
for (auto compare : {sortByName, sortByNameReverse}) {
28+
for (auto compare : {&sortByName, &sortByNameReverse}) {
2929
Module M("M", Context);
3030
Type *T = Type::getInt8Ty(Context);
3131
GlobalValue::LinkageTypes L = GlobalValue::ExternalLinkage;

0 commit comments

Comments
 (0)