forked from OSchip/llvm-project
Function::BuildLazyArguments() - fix "variable used but never read" analyzer warning. NFCI.
Simplify the code by separating the masking of the SDC variable from using it. llvm-svn: 372598
This commit is contained in:
parent
09855a2b50
commit
0860934291
|
@ -293,7 +293,8 @@ void Function::BuildLazyArguments() const {
|
|||
|
||||
// Clear the lazy arguments bit.
|
||||
unsigned SDC = getSubclassDataFromValue();
|
||||
const_cast<Function*>(this)->setValueSubclassData(SDC &= ~(1<<0));
|
||||
SDC &= ~(1 << 0);
|
||||
const_cast<Function*>(this)->setValueSubclassData(SDC);
|
||||
assert(!hasLazyArguments());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue