@@ -856,12 +856,12 @@ static StringInit *interleaveStringList(const ListInit *List,
856
856
const StringInit *Delim) {
857
857
if (List->size () == 0 )
858
858
return StringInit::get (" " );
859
- SmallString<80 > Result (dyn_cast <StringInit>(List->getElement (0 ))->getValue ());
859
+ SmallString<80 > Result (cast <StringInit>(List->getElement (0 ))->getValue ());
860
860
StringInit::StringFormat Fmt = StringInit::SF_String;
861
-
861
+
862
862
for (unsigned I = 1 , E = List->size (); I < E; ++I) {
863
863
Result.append (Delim->getValue ());
864
- auto *StrInit = dyn_cast <StringInit>(List->getElement (I));
864
+ auto *StrInit = cast <StringInit>(List->getElement (I));
865
865
Result.append (StrInit->getValue ());
866
866
Fmt = StringInit::determineFormat (Fmt, StrInit->getFormat ());
867
867
}
@@ -872,13 +872,14 @@ static StringInit *interleaveIntList(const ListInit *List,
872
872
const StringInit *Delim) {
873
873
if (List->size () == 0 )
874
874
return StringInit::get (" " );
875
- SmallString<80 > Result (dyn_cast<IntInit>(List->getElement (0 )->
876
- getCastTo (IntRecTy::get ()))->getAsString ());
877
-
875
+ SmallString<80 > Result (
876
+ cast<IntInit>(List->getElement (0 )->getCastTo (IntRecTy::get ()))
877
+ ->getAsString ());
878
+
878
879
for (unsigned I = 1 , E = List->size (); I < E; ++I) {
879
880
Result.append (Delim->getValue ());
880
- Result.append (dyn_cast <IntInit>(List->getElement (I)->
881
- getCastTo ( IntRecTy::get ())) ->getAsString ());
881
+ Result.append (cast <IntInit>(List->getElement (I)->getCastTo ( IntRecTy::get ()))
882
+ ->getAsString ());
882
883
}
883
884
return StringInit::get (Result);
884
885
}
0 commit comments