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:
ffa532d
)
Handle empty message in static_asserts.
author
Richard Trieu
<rtrieu@google.com>
Tue, 13 Sep 2016 01:37:01 +0000
(
01:37
+0000)
committer
Richard Trieu
<rtrieu@google.com>
Tue, 13 Sep 2016 01:37:01 +0000
(
01:37
+0000)
llvm-svn: 281287
clang/tools/libclang/CIndex.cpp
patch
|
blob
|
history
diff --git
a/clang/tools/libclang/CIndex.cpp
b/clang/tools/libclang/CIndex.cpp
index
0cc03c7
..
8cbedd0
100644
(file)
--- a/
clang/tools/libclang/CIndex.cpp
+++ b/
clang/tools/libclang/CIndex.cpp
@@
-1243,8
+1243,9
@@
bool CursorVisitor::VisitUnresolvedUsingTypenameDecl(
bool CursorVisitor::VisitStaticAssertDecl(StaticAssertDecl *D) {
if (Visit(MakeCXCursor(D->getAssertExpr(), StmtParent, TU, RegionOfInterest)))
return true;
- if (Visit(MakeCXCursor(D->getMessage(), StmtParent, TU, RegionOfInterest)))
- return true;
+ if (StringLiteral *Message = D->getMessage())
+ if (Visit(MakeCXCursor(Message, StmtParent, TU, RegionOfInterest)))
+ return true;
return false;
}