diff options
author | Richard Trieu <rtrieu@google.com> | 2016-02-18 22:09:30 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2016-02-18 22:09:30 +0000 |
commit | 7a08381403b54cd8998f3c922f18b65867e3c07c (patch) | |
tree | 888b16f3115d38f20de5fefd2d736c173a4fdc76 /llvm/lib/Analysis/ValueTracking.cpp | |
parent | ec3d33274887bc59ff3bfdba90494a63850680cc (diff) | |
download | bcm5719-llvm-7a08381403b54cd8998f3c922f18b65867e3c07c.tar.gz bcm5719-llvm-7a08381403b54cd8998f3c922f18b65867e3c07c.zip |
Remove uses of builtin comma operator.
Cleanup for upcoming Clang warning -Wcomma. No functionality change intended.
llvm-svn: 261270
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 6dff45f7143..fafbcef2497 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -1024,7 +1024,8 @@ static void computeKnownBitsFromShiftOperator(Operator *I, // It would be more-clearly correct to use the two temporaries for this // calculation. Reusing the APInts here to prevent unnecessary allocations. - KnownZero.clearAllBits(), KnownOne.clearAllBits(); + KnownZero.clearAllBits(); + KnownOne.clearAllBits(); // If we know the shifter operand is nonzero, we can sometimes infer more // known bits. However this is expensive to compute, so be lazy about it and @@ -1069,8 +1070,10 @@ static void computeKnownBitsFromShiftOperator(Operator *I, // return anything we'd like, but we need to make sure the sets of known bits // stay disjoint (it should be better for some other code to actually // propagate the undef than to pick a value here using known bits). - if ((KnownZero & KnownOne) != 0) - KnownZero.clearAllBits(), KnownOne.clearAllBits(); + if ((KnownZero & KnownOne) != 0) { + KnownZero.clearAllBits(); + KnownOne.clearAllBits(); + } } static void computeKnownBitsFromOperator(Operator *I, APInt &KnownZero, |