projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[TableGen] Replace some dyn_casts followed by an assert with just a regular cast...
[oota-llvm.git]
/
lib
/
TableGen
/
TGParser.cpp
diff --git
a/lib/TableGen/TGParser.cpp
b/lib/TableGen/TGParser.cpp
index 3730172934835cb8350ea0154813ff87d032c618..9bd6cc6c53fbfd630cb71e2aa85566557eab84a0 100644
(file)
--- a/
lib/TableGen/TGParser.cpp
+++ b/
lib/TableGen/TGParser.cpp
@@
-112,8
+112,7
@@
bool TGParser::SetValue(Record *CurRec, SMLoc Loc, Init *ValName,
}
// We should have a BitsInit type now.
- BitsInit *BInit = dyn_cast<BitsInit>(BI);
- assert(BInit != nullptr);
+ BitsInit *BInit = cast<BitsInit>(BI);
SmallVector<Init *, 16> NewBits(CurVal->getNumBits());