diff options
Diffstat (limited to 'lib/LD/IdenticalCodeFolding.cpp')
-rw-r--r-- | lib/LD/IdenticalCodeFolding.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/LD/IdenticalCodeFolding.cpp b/lib/LD/IdenticalCodeFolding.cpp index 5ba0fc1..a899bb0 100644 --- a/lib/LD/IdenticalCodeFolding.cpp +++ b/lib/LD/IdenticalCodeFolding.cpp @@ -126,8 +126,7 @@ void IdenticalCodeFolding::findCandidates(FoldingCandidates& pCandidateList) { for (sect = (*obj)->context()->sectBegin(); sect != sectEnd; ++sect) { switch ((*sect)->kind()) { case LDFileFormat::TEXT: { - candidate_map.insert( - std::make_pair(*sect, reinterpret_cast<LDSection*>(NULL))); + candidate_map.insert(std::make_pair(*sect, nullptr)); break; } case LDFileFormat::Relocation: { |