From bc1819e62e9e9f2c8172513113f30af64eaebe26 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Wed, 21 Jan 2015 21:23:35 +0000 Subject: [PATCH] simplify expression git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226701 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/IR/IRBuilderTest.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/unittests/IR/IRBuilderTest.cpp b/unittests/IR/IRBuilderTest.cpp index 018914da8c9..08a729aba50 100644 --- a/unittests/IR/IRBuilderTest.cpp +++ b/unittests/IR/IRBuilderTest.cpp @@ -294,9 +294,7 @@ TEST_F(IRBuilderTest, DIBuilder) { auto File = DIB.createFile("F.CBL", "/"); auto CU = DIB.createCompileUnit(dwarf::DW_LANG_Cobol74, "F.CBL", "/", "llvm-cobol74", true, "", 0); - auto Type = - DIB.createSubroutineType(File, - DIB.getOrCreateTypeArray(ArrayRef())); + auto Type = DIB.createSubroutineType(File, DIB.getOrCreateTypeArray(None)); auto SP = DIB.createFunction(CU, "foo", "", File, 1, Type, false, true, 1, 0, true, F); EXPECT_TRUE(SP.Verify());