summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-07-15 00:24:00 +0000
committerEric Christopher <echristo@apple.com>2012-07-15 00:24:00 +0000
commit11d08bd931bd2af3e1ce57f9f778b61eb078d8b7 (patch)
tree693a0933dbabbd69b2c3c1f0a0abda3b871e9755 /clang/lib/Sema
parent6dcc3762a0297bf8d8542e94e55c2938a8f76875 (diff)
downloadbcm5719-llvm-11d08bd931bd2af3e1ce57f9f778b61eb078d8b7.tar.gz
bcm5719-llvm-11d08bd931bd2af3e1ce57f9f778b61eb078d8b7.zip
Use llvm::APSInt::isSameValue to compare for the same value.
Finishes rdar://11875995 llvm-svn: 160225
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index cbf2368f712..11d8931320a 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -10435,7 +10435,7 @@ static void CheckForUniqueEnumValues(Sema &S, Decl **Elements,
continue;
}
- if (FirstVal != ECD->getInitVal())
+ if (!llvm::APSInt::isSameValue(FirstVal, ECD->getInitVal()))
return;
}
OpenPOWER on IntegriCloud