aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/Module
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Module')
-rw-r--r--lib/Module/InstructionInfoTable.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Module/InstructionInfoTable.cpp b/lib/Module/InstructionInfoTable.cpp
index 44c7a294..fde5ff19 100644
--- a/lib/Module/InstructionInfoTable.cpp
+++ b/lib/Module/InstructionInfoTable.cpp
@@ -119,13 +119,13 @@ public:
#endif
if (dsub != nullptr) {
auto path = dsub->getFilename();
- return std::unique_ptr<FunctionInfo>(new FunctionInfo(
+ return std::make_unique<FunctionInfo>(FunctionInfo(
0, getInternedString(path), dsub->getLine(), asmLine));
}
// Fallback: Mark as unknown
- return std::unique_ptr<FunctionInfo>(
- new FunctionInfo(0, getInternedString(""), 0, asmLine));
+ return std::make_unique<FunctionInfo>(
+ FunctionInfo(0, getInternedString(""), 0, asmLine));
}
std::unique_ptr<InstructionInfo>
@@ -150,17 +150,17 @@ public:
column = LexicalBlock->getColumn();
}
}
- return std::unique_ptr<InstructionInfo>(new InstructionInfo(
+ return std::make_unique<InstructionInfo>(InstructionInfo(
0, getInternedString(full_path), line, column, asmLine));
}
if (f != nullptr)
// If nothing found, use the surrounding function
- return std::unique_ptr<InstructionInfo>(
- new InstructionInfo(0, f->file, f->line, 0, asmLine));
+ return std::make_unique<InstructionInfo>(
+ InstructionInfo(0, f->file, f->line, 0, asmLine));
// If nothing found, use the surrounding function
- return std::unique_ptr<InstructionInfo>(
- new InstructionInfo(0, getInternedString(""), 0, 0, asmLine));
+ return std::make_unique<InstructionInfo>(
+ InstructionInfo(0, getInternedString(""), 0, 0, asmLine));
}
};