[cfe-commits] r109211 - /cfe/trunk/lib/Checker/GRExprEngine.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Thu Jul 22 19:54:54 PDT 2010
Author: zhongxingxu
Date: Thu Jul 22 21:54:53 2010
New Revision: 109211
URL: http://llvm.org/viewvc/llvm-project?rev=109211&view=rev
Log:
Delete unnecessary const_cast.
Modified:
cfe/trunk/lib/Checker/GRExprEngine.cpp
Modified: cfe/trunk/lib/Checker/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/GRExprEngine.cpp?rev=109211&r1=109210&r2=109211&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/GRExprEngine.cpp (original)
+++ cfe/trunk/lib/Checker/GRExprEngine.cpp Thu Jul 22 21:54:53 2010
@@ -2534,7 +2534,7 @@
return;
const VarDecl* VD = dyn_cast<VarDecl>(D);
- const Expr* InitEx = const_cast<Expr*>(VD->getInit());
+ const Expr* InitEx = VD->getInit();
// FIXME: static variables may have an initializer, but the second
// time a function is called those values may not be current.
More information about the cfe-commits
mailing list