[llvm-commits] [llvm] r77821 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Chris Lattner sabre at nondot.org
Sat Aug 1 15:48:40 PDT 2009


Author: lattner
Date: Sat Aug  1 17:48:40 2009
New Revision: 77821

URL: http://llvm.org/viewvc/llvm-project?rev=77821&view=rev
Log:
loweringinfo is always non-null.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=77821&r1=77820&r2=77821&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Sat Aug  1 17:48:40 2009
@@ -426,7 +426,7 @@
     getObjFileLowering().SectionForGlobal(F, Mang, TM);
 
   bool JTInDiffSection = false;
-  if ((IsPic && !(LoweringInfo && LoweringInfo->usesGlobalOffsetTable())) ||
+  if ((IsPic && !LoweringInfo->usesGlobalOffsetTable()) ||
       !JumpTableDataSection || F->isWeakForLinker()) {
     // In PIC mode, we need to emit the jump table to the same section as the
     // function body itself, otherwise the label differences won't make sense.





More information about the llvm-commits mailing list