diff options
author | John McCall <rjmccall@apple.com> | 2010-08-25 11:45:40 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-08-25 11:45:40 +0000 |
commit | e302792b6155bb195f88610a1ebde38343cf402e (patch) | |
tree | a3dc32bec0d52b683d794838266f40a1e43cffd7 /clang/lib/Checker/BugReporterVisitors.cpp | |
parent | 1bcddcaab3d1ad8c24e1771ac58a480aeac4230d (diff) | |
download | bcm5719-llvm-e302792b6155bb195f88610a1ebde38343cf402e.tar.gz bcm5719-llvm-e302792b6155bb195f88610a1ebde38343cf402e.zip |
GCC didn't care for my attempt at API compatibility, so brute-force everything
to the new constants.
llvm-svn: 112047
Diffstat (limited to 'clang/lib/Checker/BugReporterVisitors.cpp')
-rw-r--r-- | clang/lib/Checker/BugReporterVisitors.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/BugReporterVisitors.cpp b/clang/lib/Checker/BugReporterVisitors.cpp index a6ad245bbaa..cddc86ee9dc 100644 --- a/clang/lib/Checker/BugReporterVisitors.cpp +++ b/clang/lib/Checker/BugReporterVisitors.cpp @@ -31,7 +31,7 @@ const Stmt *clang::bugreporter::GetDerefExpr(const ExplodedNode *N) { const Stmt *S = N->getLocationAs<PostStmt>()->getStmt(); if (const UnaryOperator *U = dyn_cast<UnaryOperator>(S)) { - if (U->getOpcode() == UnaryOperator::Deref) + if (U->getOpcode() == UO_Deref) return U->getSubExpr()->IgnoreParenCasts(); } else if (const MemberExpr *ME = dyn_cast<MemberExpr>(S)) { |