Index: tools/lto/LTOModule.cpp |
=================================================================== |
--- tools/lto/LTOModule.cpp (revision 139262) |
+++ tools/lto/LTOModule.cpp (working copy) |
@@ -615,6 +615,8 @@ |
bool LTOModule::addAsmGlobalSymbols(MCContext &Context) { |
const std::string &inlineAsm = _module->getModuleInlineAsm(); |
+ if (inlineAsm.empty()) |
+ return false; |
OwningPtr<RecordStreamer> Streamer(new RecordStreamer(Context)); |
MemoryBuffer *Buffer = MemoryBuffer::getMemBuffer(inlineAsm); |