aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaISelPattern.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-02-02 04:35:44 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-02-02 04:35:44 +0000
commitc23d696e71f28f0c9cebb74fc42491dd33e9112a (patch)
tree4988019007bc904ceb9b747cdd3f0161d3691c3b /lib/Target/Alpha/AlphaISelPattern.cpp
parent272455b404eabe70ce9e033ba19ec1b6cfe603a5 (diff)
fix Load bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19987 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r--lib/Target/Alpha/AlphaISelPattern.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp
index 344117dd80..752be14c37 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)
{