-Werror=unused-but-set-variable
Change-Id: I8bdf8a4c04256ad665960dd6f0d71d032156a34b
This commit is contained in:
parent
2a612907ae
commit
6ac0dc7003
@ -141,10 +141,8 @@ bool Flatten::rewrite(const IfStmt* ifStmt)
|
|||||||
conditionString = "!(" + conditionString + ")";
|
conditionString = "!(" + conditionString + ")";
|
||||||
|
|
||||||
std::string thenString = getSourceAsString(thenRange);
|
std::string thenString = getSourceAsString(thenRange);
|
||||||
bool thenIsCompound = false;
|
|
||||||
if (auto compoundStmt = dyn_cast<CompoundStmt>(ifStmt->getThen())) {
|
if (auto compoundStmt = dyn_cast<CompoundStmt>(ifStmt->getThen())) {
|
||||||
if (compoundStmt->getLBracLoc().isValid()) {
|
if (compoundStmt->getLBracLoc().isValid()) {
|
||||||
thenIsCompound = true;
|
|
||||||
thenString = stripOpenAndCloseBrace(thenString);
|
thenString = stripOpenAndCloseBrace(thenString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user