Skip to content
Snippets Groups Projects
Commit 216e7299 authored by Chris Lattner's avatar Chris Lattner
Browse files

empty symbols aren't possible, the mcsymbol ctor aborts on them.

llvm-svn: 98288
parent c1d1229d
No related branches found
No related tags found
No related merge requests found
......@@ -38,10 +38,6 @@ MCSymbol *MCContext::GetOrCreateSymbol(const Twine &Name) {
MCSymbol *MCContext::GetOrCreateTemporarySymbol(StringRef Name) {
// If unnamed, just create a symbol.
if (Name.empty())
new (*this) MCSymbol("", true);
// Otherwise create as usual.
MCSymbol *&Entry = Symbols[Name];
if (Entry) return Entry;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment