summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaCXXCast.cpp
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2011-01-18 02:00:16 +0000
committerJeffrey Yasskin <jyasskin@google.com>2011-01-18 02:00:16 +0000
commit8dfa5f1776c2703bba757c388acf90c7fd8551b4 (patch)
tree49cbe6a9f4573808eb03cc846d95b3813e4c1de1 /clang/lib/Sema/SemaCXXCast.cpp
parente46bc4cec56c56e60e3ba034ffbf834fadd63cec (diff)
downloadbcm5719-llvm-8dfa5f1776c2703bba757c388acf90c7fd8551b4.tar.gz
bcm5719-llvm-8dfa5f1776c2703bba757c388acf90c7fd8551b4.zip
Fix warnings found by gcc-4.6, from -Wunused-but-set-variable and
-Wint-to-pointer-cast. llvm-svn: 123719
Diffstat (limited to 'clang/lib/Sema/SemaCXXCast.cpp')
-rw-r--r--clang/lib/Sema/SemaCXXCast.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaCXXCast.cpp b/clang/lib/Sema/SemaCXXCast.cpp
index ba1c3b0f407..200f975d74b 100644
--- a/clang/lib/Sema/SemaCXXCast.cpp
+++ b/clang/lib/Sema/SemaCXXCast.cpp
@@ -601,8 +601,6 @@ static TryCastResult TryStaticCast(Sema &Self, Expr *&SrcExpr,
// In the CStyle case, the earlier attempt to const_cast should have taken
// care of reverse qualification conversions.
- QualType OrigSrcType = SrcExpr->getType();
-
QualType SrcType = Self.Context.getCanonicalType(SrcExpr->getType());
// C++0x 5.2.9p9: A value of a scoped enumeration type can be explicitly
OpenPOWER on IntegriCloud