summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/IR/Function.cpp3
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());
}
OpenPOWER on IntegriCloud