diff options
-rw-r--r-- | lib/Target/X86/X86ISelPattern.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelPattern.cpp b/lib/Target/X86/X86ISelPattern.cpp index 4db13aa9ec..826023d354 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); |