Skip to content

Commit d97d0e9

Browse files
committed
Fix pointer cast introduced in #1098 to avoid warnings
1 parent 7a22c26 commit d97d0e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/lib/Lower/SymbolMap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ Fortran::lower::operator<<(llvm::raw_ostream &os,
7171
for (auto i : llvm::enumerate(symMap.symbolMapStack)) {
7272
os << " level " << i.index() << "<{\n";
7373
for (auto iter : i.value())
74-
os << " symbol @" << (void *)iter.first << " [" << *iter.first
75-
<< "] ->\n " << iter.second;
74+
os << " symbol @" << static_cast<const void *>(iter.first) << " ["
75+
<< *iter.first << "] ->\n " << iter.second;
7676
os << " }>\n";
7777
}
7878
return os;

0 commit comments

Comments
 (0)