aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/PatternMatch.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-06 18:47:14 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-06 18:47:14 +0000
commit1d2bf885dd9f3175a5a2f6c4389eb5acbc180182 (patch)
treec049c15f7a970e65031321e644dd3fc1508a3779 /include/llvm/Support/PatternMatch.h
parentf910a3ff0f63143f44536db38e5975aec01c01d8 (diff)
Fix a small bug noticed on code review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/PatternMatch.h')
-rw-r--r--include/llvm/Support/PatternMatch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/PatternMatch.h b/include/llvm/Support/PatternMatch.h
index bee416a24e..2d498a3561 100644
--- a/include/llvm/Support/PatternMatch.h
+++ b/include/llvm/Support/PatternMatch.h
@@ -310,7 +310,7 @@ struct cast_match {
return Op.match(I->getOperand(0));
} else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) {
if (CE->getOpcode() == Instruction::Cast) {
- if (DestTy) *DestTy = I->getType();
+ if (DestTy) *DestTy = CE->getType();
return Op.match(CE->getOperand(0));
}
}