diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-03-15 05:30:12 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-03-15 05:30:12 +0000 |
commit | e3ae0a4c4721310fbdb1e2c0164f554936bc79fe (patch) | |
tree | 540428c21f118f778f66411565db2157dacc1b4b /clang/lib/Analysis/UninitializedValues.cpp | |
parent | 7c607e66f42cb4441a38ce905b04e042c081499e (diff) | |
download | bcm5719-llvm-e3ae0a4c4721310fbdb1e2c0164f554936bc79fe.tar.gz bcm5719-llvm-e3ae0a4c4721310fbdb1e2c0164f554936bc79fe.zip |
Appease GCC. I'm surprised Clang accepted this.
llvm-svn: 127672
Diffstat (limited to 'clang/lib/Analysis/UninitializedValues.cpp')
-rw-r--r-- | clang/lib/Analysis/UninitializedValues.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/clang/lib/Analysis/UninitializedValues.cpp b/clang/lib/Analysis/UninitializedValues.cpp index 31ee412815c..ae0dbf10e89 100644 --- a/clang/lib/Analysis/UninitializedValues.cpp +++ b/clang/lib/Analysis/UninitializedValues.cpp @@ -116,10 +116,6 @@ public: unsigned x = (vv.vec[idx << 1] ? 1 : 0) | (vv.vec[(idx << 1) | 1] ? 2 :0); return (Value) x; } - - bool operator==(Value v) { - return v = operator Value(); - } }; reference operator[](unsigned idx) { return reference(*this, idx); } @@ -132,7 +128,7 @@ class CFGBlockValues { const CFG &cfg; BVPair *vals; ValueVector scratch; - DeclToIndex DeclToIndex; + DeclToIndex declToIndex; ValueVector &lazyCreate(ValueVector *&bv); public: @@ -150,7 +146,7 @@ public: bool updateValueVectors(const CFGBlock *block, const BVPair &newVals); bool hasNoDeclarations() const { - return DeclToIndex.size() == 0; + return declToIndex.size() == 0; } void resetScratch(); @@ -180,13 +176,13 @@ CFGBlockValues::~CFGBlockValues() { } void CFGBlockValues::computeSetOfDeclarations(const DeclContext &dc) { - DeclToIndex.computeMap(dc); - scratch.resize(DeclToIndex.size()); + declToIndex.computeMap(dc); + scratch.resize(declToIndex.size()); } ValueVector &CFGBlockValues::lazyCreate(ValueVector *&bv) { if (!bv) - bv = new ValueVector(DeclToIndex.size()); + bv = new ValueVector(declToIndex.size()); return *bv; } @@ -286,7 +282,7 @@ void CFGBlockValues::resetScratch() { } ValueVector::reference CFGBlockValues::operator[](const VarDecl *vd) { - const llvm::Optional<unsigned> &idx = DeclToIndex.getValueIndex(vd); + const llvm::Optional<unsigned> &idx = declToIndex.getValueIndex(vd); assert(idx.hasValue()); return scratch[idx.getValue()]; } |