From: Andrew Lenharth Date: Wed, 2 Feb 2005 04:35:44 +0000 (+0000) Subject: fix Load bug X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c23d696e71f28f0c9cebb74fc42491dd33e9112a;p=oota-llvm.git fix Load bug git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19987 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp index 344117dd80a..752be14c376 100644 --- a/lib/Target/Alpha/AlphaISelPattern.cpp +++ b/lib/Target/Alpha/AlphaISelPattern.cpp @@ -1046,7 +1046,7 @@ unsigned ISel::SelectExpr(SDOperand N) { SDOperand Chain = N.getOperand(0); SDOperand Address = N.getOperand(1); - assert(DestType == MVT::i64 && "unknown Load dest type"); + assert(N.getValue(0).getValueType() == MVT::i64 && "unknown Load dest type"); if (Address.getOpcode() == ISD::GlobalAddress) {