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:
9096968
)
Assume UniqueID is zero for invalid PPRegion to fix uninitialized reads reported...
author
Alexey Samsonov
<samsonov@google.com>
Fri, 2 Aug 2013 09:06:39 +0000
(09:06 +0000)
committer
Alexey Samsonov
<samsonov@google.com>
Fri, 2 Aug 2013 09:06:39 +0000
(09:06 +0000)
llvm-svn: 187647
clang/tools/libclang/Indexing.cpp
patch
|
blob
|
history
diff --git
a/clang/tools/libclang/Indexing.cpp
b/clang/tools/libclang/Indexing.cpp
index
e2b898b
..
48fd43b
100644
(file)
--- a/
clang/tools/libclang/Indexing.cpp
+++ b/
clang/tools/libclang/Indexing.cpp
@@
-92,7
+92,7
@@
class PPRegion {
time_t ModTime;
unsigned Offset;
public:
- PPRegion() : ModTime(), Offset() {}
+ PPRegion() :
UniqueID(0, 0),
ModTime(), Offset() {}
PPRegion(llvm::sys::fs::UniqueID UniqueID, unsigned offset, time_t modTime)
: UniqueID(UniqueID), ModTime(modTime), Offset(offset) {}