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:
8bf10f8
)
[TableGen] Use cast instead of dyn_cast where result isn't checked before being deref...
author
Craig Topper
<craig.topper@gmail.com>
Wed, 22 Apr 2015 02:09:42 +0000
(
02:09
+0000)
committer
Craig Topper
<craig.topper@gmail.com>
Wed, 22 Apr 2015 02:09:42 +0000
(
02:09
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235463
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/TableGen/Record.cpp
patch
|
blob
|
history
diff --git
a/lib/TableGen/Record.cpp
b/lib/TableGen/Record.cpp
index 8a8f0ee3a089ba0877e4488b81df935b063b263e..3374432daa6f619d16dce1483a090b45dd32da1f 100644
(file)
--- a/
lib/TableGen/Record.cpp
+++ b/
lib/TableGen/Record.cpp
@@
-345,7
+345,7
@@
Init *DagRecTy::convertValue(BinOpInit *BO) {
}
RecordRecTy *RecordRecTy::get(Record *R) {
- return
dyn_
cast<RecordRecTy>(R->getDefInit()->getType());
+ return cast<RecordRecTy>(R->getDefInit()->getType());
}
std::string RecordRecTy::getAsString() const {