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:
7e246a4
)
SemaInit.cpp: Fix a warning with -Asserts. [-Wunused-variable]
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Fri, 18 Jul 2014 01:26:35 +0000
(
01:26
+0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Fri, 18 Jul 2014 01:26:35 +0000
(
01:26
+0000)
llvm-svn: 213345
clang/lib/Sema/SemaInit.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaInit.cpp
b/clang/lib/Sema/SemaInit.cpp
index
3ed1d7f
..
30471fb
100644
(file)
--- a/
clang/lib/Sema/SemaInit.cpp
+++ b/
clang/lib/Sema/SemaInit.cpp
@@
-919,6
+919,7
@@
void InitListChecker::CheckSubElementType(const InitializedEntity &Entity,
// that we've already checked once.
assert(SemaRef.Context.hasSameType(VIE->getType(), ElemType) &&
"found implicit initialization for the wrong type");
+ (void)VIE;
if (!VerifyOnly)
UpdateStructuredListElement(StructuredList, StructuredIndex, expr);
++Index;