diff options
author | Richard Trieu <rtrieu@google.com> | 2012-07-23 20:21:35 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2012-07-23 20:21:35 +0000 |
commit | c320c745ccd411caa9afa776bf51548b758bf4fe (patch) | |
tree | ee99b17c47bceb296088c79e9f0587e0ed694daf /clang/lib/Sema/SemaChecking.cpp | |
parent | e3942ef9a45fb9a0bf99c2ea2de5af761d8a269a (diff) | |
download | bcm5719-llvm-c320c745ccd411caa9afa776bf51548b758bf4fe.tar.gz bcm5719-llvm-c320c745ccd411caa9afa776bf51548b758bf4fe.zip |
Change APInt to APSInt in one instance. Also change a call to operator==() to
APSInt::isSameValue() when comparing different sized APSInt's.
llvm-svn: 160641
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index 2e920676655..73f9b01594a 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -4259,7 +4259,7 @@ static bool AnalyzeBitFieldAssignment(Sema &S, FieldDecl *Bitfield, Expr *Init, // Check whether the stored value is equal to the original value. TruncatedValue = TruncatedValue.extend(OriginalWidth); - if (Value == TruncatedValue) + if (llvm::APSInt::isSameValue(Value, TruncatedValue)) return false; // Special-case bitfields of width 1: booleans are naturally 0/1, and |