diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-25 16:48:09 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-25 16:48:09 +0000 |
commit | da8ff4181c330e9d5ec8f25ff2b738d2a599ea46 (patch) | |
tree | c4d1508ffd31a77c237c47f029efd80152c8ed0e /llvm/lib/Analysis/ValueTracking.cpp | |
parent | 9c932d31e11f45afde50fd21b47cbf744ff69356 (diff) | |
download | bcm5719-llvm-da8ff4181c330e9d5ec8f25ff2b738d2a599ea46.tar.gz bcm5719-llvm-da8ff4181c330e9d5ec8f25ff2b738d2a599ea46.zip |
[ValueTracking] Use APInt instead of auto. NFC
This is a pre-commit for a patch I'm working on to turn KnownZero/One into a struct. Once I do that the type here will be less obvious.
llvm-svn: 301324
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index ecb169cb0db..5067fbc4979 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -2036,7 +2036,7 @@ static bool isKnownNonEqual(const Value *V1, const Value *V2, const Query &Q) { APInt KnownOne2(BitWidth, 0); computeKnownBits(V2, KnownZero2, KnownOne2, 0, Q); - auto OppositeBits = (KnownZero1 & KnownOne2) | (KnownZero2 & KnownOne1); + APInt OppositeBits = (KnownZero1 & KnownOne2) | (KnownZero2 & KnownOne1); if (OppositeBits.getBoolValue()) return true; } |