From b422aeac9efe931fc8e0732edeeb1572aee37cc6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 18 Jan 2005 17:35:28 +0000 Subject: [PATCH] Fix 124.m88ksim. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19667 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86ISelPattern.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Target/X86/X86ISelPattern.cpp b/lib/Target/X86/X86ISelPattern.cpp index 4db13aa9ec2..826023d3545 100644 --- a/lib/Target/X86/X86ISelPattern.cpp +++ b/lib/Target/X86/X86ISelPattern.cpp @@ -2511,6 +2511,9 @@ bool ISel::TryToFoldLoadOpStore(SDNode *Node) { case MVT::i32: Opc = TabPtr[5]; break; } + // Table entry doesn't exist? + if (Opc == 0) return false; + if (!ExprMap.insert(std::make_pair(TheLoad.getValue(1), 1)).second) assert(0 && "Already emitted?"); Select(Chain);