diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-09-23 12:49:39 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-09-23 12:49:39 +0000 |
| commit | 0860934291711c4d6eb3f73c2943442aa1ab7be6 (patch) | |
| tree | 9b163fd3698cb2070277733eaa28f2ee925d5dd4 /llvm/lib/IR | |
| parent | 09855a2b50043235a3bacd6d51f3d203bc6e36a8 (diff) | |
| download | bcm5719-llvm-0860934291711c4d6eb3f73c2943442aa1ab7be6.tar.gz bcm5719-llvm-0860934291711c4d6eb3f73c2943442aa1ab7be6.zip | |
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
Diffstat (limited to 'llvm/lib/IR')
| -rw-r--r-- | llvm/lib/IR/Function.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index 1a2783f12fe..a4632762c20 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -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()); } |

