Changes in directory llvm/include/llvm/Support:
PatternMatch.h updated: 1.11 -> 1.12 --- Log message: Fix a small bug noticed on code review. --- Diffs of the changes: (+1 -1) PatternMatch.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/Support/PatternMatch.h diff -u llvm/include/llvm/Support/PatternMatch.h:1.11 llvm/include/llvm/Support/PatternMatch.h:1.12 --- llvm/include/llvm/Support/PatternMatch.h:1.11 Wed Nov 1 19:53:58 2006 +++ llvm/include/llvm/Support/PatternMatch.h Mon Nov 6 12:47:14 2006 @@ -310,7 +310,7 @@ 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)); } } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits