loweringinfo is always non-null.
authorChris Lattner <sabre@nondot.org>
Sat, 1 Aug 2009 22:48:40 +0000 (22:48 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 1 Aug 2009 22:48:40 +0000 (22:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77821 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/AsmPrinter.cpp

index 5168c45668f3264a9d72051c6d3d82218275a7c4..7c9fcf5fd6063a9a05894bbcec554ec7c82ae1a1 100644 (file)
@@ -426,7 +426,7 @@ void AsmPrinter::EmitJumpTableInfo(MachineJumpTableInfo *MJTI,
     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.