From 221e7ee5fe8c4bbd1f6f5b881cc59e0a66f9174c Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 29 Sep 2016 02:03:52 +0000 Subject: [PATCH] Remove an unnecessary duplicate initialization of TLOF from the Mips AsmPrinter. This was reinitializing the Mangler after we moved the Mangler down to TLOF and causing us to have two different unnamed global values accessed with the same name. This should fix the problems on the ubsan tests here: http://lab.llvm.org:8011/builders/clang-cmake-mips/builds/15307 llvm-svn: 282675 --- lib/Target/Mips/MipsAsmPrinter.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Target/Mips/MipsAsmPrinter.cpp b/lib/Target/Mips/MipsAsmPrinter.cpp index 7519c309e44..8dab262ac25 100644 --- a/lib/Target/Mips/MipsAsmPrinter.cpp +++ b/lib/Target/Mips/MipsAsmPrinter.cpp @@ -60,10 +60,6 @@ MipsTargetStreamer &MipsAsmPrinter::getTargetStreamer() const { bool MipsAsmPrinter::runOnMachineFunction(MachineFunction &MF) { Subtarget = &MF.getSubtarget(); - // Initialize TargetLoweringObjectFile. - const_cast(getObjFileLowering()) - .Initialize(OutContext, TM); - MipsFI = MF.getInfo(); if (Subtarget->inMips16Mode()) for (std::map<