aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/ThreadSafety.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-05-21 06:58:08 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-05-21 06:58:08 +0000
commitd5f23b0b7528b5c3caed1ba14f897cc4aaa9e3c3 (patch)
tree133ab22e59f61162b7f8e8e794dd6458769e8e1a /lib/Analysis/ThreadSafety.cpp
parent624e91b063cecc3671eeb40e4b0fa08d71b59284 (diff)
downloadsrc-d5f23b0b7528b5c3caed1ba14f897cc4aaa9e3c3.tar.gz
src-d5f23b0b7528b5c3caed1ba14f897cc4aaa9e3c3.zip
Vendor import of clang RELEASE_361/final tag r237755 (effectively, 3.6.1 release):vendor/clang/clang-release_361-r237755vendor/clang/clang-3.6.x
Notes
Notes: svn path=/vendor/clang/dist/; revision=283178 svn path=/vendor/clang/clang-3.6.x/; revision=283621; tag=vendor/clang/clang-3.6.x
Diffstat (limited to 'lib/Analysis/ThreadSafety.cpp')
-rw-r--r--lib/Analysis/ThreadSafety.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/ThreadSafety.cpp b/lib/Analysis/ThreadSafety.cpp
index a986c587f869..f45d6e7ef139 100644
--- a/lib/Analysis/ThreadSafety.cpp
+++ b/lib/Analysis/ThreadSafety.cpp
@@ -2108,8 +2108,8 @@ void ThreadSafetyAnalyzer::runAnalysis(AnalysisDeclContext &AC) {
// Create a dummy expression,
VarDecl *VD = const_cast<VarDecl*>(AD.getVarDecl());
- DeclRefExpr DRE(VD, false, VD->getType(), VK_LValue,
- AD.getTriggerStmt()->getLocEnd());
+ DeclRefExpr DRE(VD, false, VD->getType().getNonReferenceType(),
+ VK_LValue, AD.getTriggerStmt()->getLocEnd());
LocksetBuilder.handleCall(&DRE, DD);
break;
}