Object: Fix COFF import file's symbols.
[oota-llvm.git] / include / llvm / Object / COFFImportFile.h
index 07e98f5cf12d83d6b4ed746ae91d7f49e1b3fb25..b04a44ea60d2a9f952cda1279c3216dab579efea 100644 (file)
@@ -37,7 +37,7 @@ public:
 
   std::error_code printSymbolName(raw_ostream &OS,
                                   DataRefImpl Symb) const override {
-    if (Symb.p == 1)
+    if (Symb.p == 0)
       OS << "__imp_";
     OS << StringRef(Data.getBufferStart() + sizeof(coff_import_header));
     return std::error_code();