[llvm] r226701 - simplify expression
Adrian Prantl
aprantl at apple.com
Wed Jan 21 13:23:36 PST 2015
Author: adrian
Date: Wed Jan 21 15:23:35 2015
New Revision: 226701
URL: http://llvm.org/viewvc/llvm-project?rev=226701&view=rev
Log:
simplify expression
Modified:
llvm/trunk/unittests/IR/IRBuilderTest.cpp
Modified: llvm/trunk/unittests/IR/IRBuilderTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/IRBuilderTest.cpp?rev=226701&r1=226700&r2=226701&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/IRBuilderTest.cpp (original)
+++ llvm/trunk/unittests/IR/IRBuilderTest.cpp Wed Jan 21 15:23:35 2015
@@ -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<Metadata*>()));
+ 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());
More information about the llvm-commits
mailing list