[cfe-commits] r112850 - /cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp
Tom Care
tcare at apple.com
Thu Sep 2 12:00:08 PDT 2010
Author: tcare
Date: Thu Sep 2 14:00:08 2010
New Revision: 112850
URL: http://llvm.org/viewvc/llvm-project?rev=112850&view=rev
Log:
Fixed broken build with GCC
Modified:
cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp
Modified: cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp?rev=112850&r1=112849&r2=112850&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp (original)
+++ cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp Thu Sep 2 14:00:08 2010
@@ -90,12 +90,12 @@
static bool containsNonLocalVarDecl(const Stmt *S);
// Hash table and related data structures
- typedef struct {
- Assumption Assumption;
- AnalysisContext *AnalysisContext;
- ExplodedNodeSet ExplodedNodes; // Set of ExplodedNodes that refer to a
- // BinaryOperator
- } BinaryOperatorData;
+ struct BinaryOperatorData {
+ Assumption assumption;
+ AnalysisContext *analysisContext;
+ ExplodedNodeSet explodedNodes; // Set of ExplodedNodes that refer to a
+ // BinaryOperator
+ };
typedef llvm::DenseMap<const BinaryOperator *, BinaryOperatorData>
AssumptionMap;
AssumptionMap hash;
@@ -119,9 +119,9 @@
// 'Possible'. At this stage we do not store the ExplodedNode, as it has not
// been created yet.
BinaryOperatorData &Data = hash[B];
- Assumption &A = Data.Assumption;
+ Assumption &A = Data.assumption;
AnalysisContext *AC = C.getCurrentAnalysisContext();
- Data.AnalysisContext = AC;
+ Data.analysisContext = AC;
// If we already have visited this node on a path that does not contain an
// idempotent operation, return immediately.
@@ -333,7 +333,7 @@
const BinaryOperator *B) {
// Add the ExplodedNode we just visited
BinaryOperatorData &Data = hash[B];
- Data.ExplodedNodes.Add(C.getPredecessor());
+ Data.explodedNodes.Add(C.getPredecessor());
}
void IdempotentOperationChecker::VisitEndAnalysis(ExplodedGraph &G,
@@ -345,9 +345,9 @@
for (AssumptionMap::const_iterator i = hash.begin(); i != hash.end(); ++i) {
// Unpack the hash contents
const BinaryOperatorData &Data = i->second;
- const Assumption &A = Data.Assumption;
- AnalysisContext *AC = Data.AnalysisContext;
- const ExplodedNodeSet &ES = Data.ExplodedNodes;
+ const Assumption &A = Data.assumption;
+ AnalysisContext *AC = Data.analysisContext;
+ const ExplodedNodeSet &ES = Data.explodedNodes;
const BinaryOperator *B = i->first;
More information about the cfe-commits
mailing list