summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-01 22:48:40 +0000
committerChris Lattner <sabre@nondot.org>2009-08-01 22:48:40 +0000
commit61990958d8fa49245b42ca8752a70dd88f7e4845 (patch)
treef715e3ed727b549f58b4049b5bbff62869baf1b9 /llvm/lib/CodeGen/AsmPrinter
parentb2bbb61f33983d82483b19f6c0481da90d38ed7a (diff)
downloadbcm5719-llvm-61990958d8fa49245b42ca8752a70dd88f7e4845.tar.gz
bcm5719-llvm-61990958d8fa49245b42ca8752a70dd88f7e4845.zip
loweringinfo is always non-null.
llvm-svn: 77821
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 5168c45668f..7c9fcf5fd60 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -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.
OpenPOWER on IntegriCloud