Skip to content

Commit 7fd7c2a

Browse files
committed
Removes compound literals from IDEGeneralizedLCATest
Compound literals are a C99 feature that is not needed is C++ as we can just call the ctor of a type.
1 parent ed67292 commit 7fd7c2a

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

unittests/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/IDEGeneralizedLCATest.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,15 @@ class IDEGeneralizedLCATest : public ::testing::Test {
5050

5151
void Initialize(const std::string &llFile, size_t maxSetSize = 2) {
5252
IRDB = std::make_unique<ProjectIRDB>(
53-
(const std::vector<std::string>){pathToLLFiles + llFile},
54-
IRDBOptions::WPA);
53+
std::vector<std::string>{pathToLLFiles + llFile}, IRDBOptions::WPA);
5554
TH = std::make_unique<LLVMTypeHierarchy>(*IRDB);
5655
PT = std::make_unique<LLVMPointsToSet>(*IRDB);
57-
ICFG = std::make_unique<LLVMBasedICFG>(
58-
*IRDB, CallGraphAnalysisType::RTA,
59-
(const std::set<std::string>){"main"}, TH.get(), PT.get());
56+
ICFG = std::make_unique<LLVMBasedICFG>(*IRDB, CallGraphAnalysisType::RTA,
57+
std::set<std::string>{"main"},
58+
TH.get(), PT.get());
6059
LCAProblem = std::make_unique<IDEGeneralizedLCA>(
6160
IRDB.get(), TH.get(), ICFG.get(), PT.get(),
62-
(const std::set<std::string>){"main"}, maxSetSize);
61+
std::set<std::string>{"main"}, maxSetSize);
6362
LCASolver =
6463
std::make_unique<IDESolver<IDEGeneralizedLCADomain>>(*LCAProblem.get());
6564

0 commit comments

Comments
 (0)