projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f910a3f
)
Fix a small bug noticed on code review.
author
Reid Spencer
<rspencer@reidspencer.com>
Mon, 6 Nov 2006 18:47:14 +0000
(18:47 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Mon, 6 Nov 2006 18:47:14 +0000
(18:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31476
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/PatternMatch.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/PatternMatch.h
b/include/llvm/Support/PatternMatch.h
index bee416a24e70ebec66be1bc7f73d77b7dc57485f..2d498a35616047605f36ec31b1591e4b883702ee 100644
(file)
--- 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));
}
}