diff options
Diffstat (limited to 'llvm/include/llvm/MC/MCAssembler.h')
| -rw-r--r-- | llvm/include/llvm/MC/MCAssembler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/MC/MCAssembler.h b/llvm/include/llvm/MC/MCAssembler.h index a27482c32a9..945f4220975 100644 --- a/llvm/include/llvm/MC/MCAssembler.h +++ b/llvm/include/llvm/MC/MCAssembler.h @@ -676,7 +676,7 @@ class MCAssembler { public: typedef iplist<MCSectionData> SectionDataListType; - typedef std::vector<MCSymbolData *> SymbolDataListType; + typedef std::vector<const MCSymbol *> SymbolDataListType; typedef SectionDataListType::const_iterator const_iterator; typedef SectionDataListType::iterator iterator; @@ -1052,7 +1052,7 @@ public: *Created = !hasSymbolData(Symbol); if (!hasSymbolData(Symbol)) { Symbol.getUnsafeData().initialize(Symbol, nullptr, 0); - Symbols.push_back(&Symbol.getData()); + Symbols.push_back(&Symbol); } return Symbol.getData(); } |

