Skip to content

Commit 7b47a14

Browse files
committed
Specify type and don't use Error for getAsInteger return val.
1 parent ca562ba commit 7b47a14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2070,9 +2070,9 @@ static unsigned getMemProfCloneNum(const Function &F) {
20702070
auto Pos = F.getName().find_last_of('.');
20712071
assert(Pos > 0);
20722072
unsigned CloneNo;
2073-
auto Error = F.getName().drop_front(Pos + 1).getAsInteger(10, CloneNo);
2074-
assert(!Error);
2075-
(void)Error;
2073+
bool Err = F.getName().drop_front(Pos + 1).getAsInteger(10, CloneNo);
2074+
assert(!Err);
2075+
(void)Err;
20762076
return CloneNo;
20772077
}
20782078

0 commit comments

Comments
 (0)