projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8213f7f
)
Silence unused variable warning in NDEBUG build
author
Reid Kleckner
<reid@kleckner.net>
Thu, 26 Feb 2015 00:33:41 +0000
(
00:33
+0000)
committer
Reid Kleckner
<reid@kleckner.net>
Thu, 26 Feb 2015 00:33:41 +0000
(
00:33
+0000)
llvm-svn: 230590
clang/lib/Sema/SemaExprCXX.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaExprCXX.cpp
b/clang/lib/Sema/SemaExprCXX.cpp
index
c5df3ed
..
695c3db
100644
(file)
--- a/
clang/lib/Sema/SemaExprCXX.cpp
+++ b/
clang/lib/Sema/SemaExprCXX.cpp
@@
-2127,8
+2127,8
@@
void Sema::DeclareGlobalAllocationFunction(DeclarationName Name,
"Only sized deallocation can have two parameters");
// This declaration should be emited as extern_weak.
- LinkageInfo LV = Alloc->getLinkageAndVisibility();
-
assert(LV.getLinkage() ==
clang::ExternalLinkage);
+ assert(Alloc->getLinkageAndVisibility().getLinkage() ==
+
clang::ExternalLinkage);
Alloc->addAttr(WeakAttr::CreateImplicit(Context));
}