From: Craig Topper Date: Tue, 25 Apr 2017 16:48:09 +0000 (+0000) Subject: [ValueTracking] Use APInt instead of auto. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a14d021e5a7184339686054f6e14d9969675b2a2;p=llvm [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301324 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ValueTracking.cpp b/lib/Analysis/ValueTracking.cpp index ecb169cb0db..5067fbc4979 100644 --- a/lib/Analysis/ValueTracking.cpp +++ b/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; }