diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-11-06 18:47:14 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-11-06 18:47:14 +0000 |
commit | c7ed09bef7f8df2c3a19b3133ce6d2f7a1628187 (patch) | |
tree | e472c2bebbfeacbe6b33f3217f58953df3e5297f | |
parent | 235aeef9e19eb8dacffab088f5cf789422fced60 (diff) | |
download | llvm-c7ed09bef7f8df2c3a19b3133ce6d2f7a1628187.zip llvm-c7ed09bef7f8df2c3a19b3133ce6d2f7a1628187.tar.gz llvm-c7ed09bef7f8df2c3a19b3133ce6d2f7a1628187.tar.bz2 |
Fix a small bug noticed on code review.
llvm-svn: 31476
-rw-r--r-- | llvm/include/llvm/Support/PatternMatch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/PatternMatch.h b/llvm/include/llvm/Support/PatternMatch.h index bee416a..2d498a3 100644 --- a/llvm/include/llvm/Support/PatternMatch.h +++ b/llvm/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)); } } |