[llvm-bugs] [Bug 32921] New: Undefined variables in class Status in VirtualFileSystem.h
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu May 4 06:54:11 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32921
Bug ID: 32921
Summary: Undefined variables in class Status in
VirtualFileSystem.h
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: zeccav at gmail.com
CC: llvm-bugs at lists.llvm.org
After compiling clang trunk 301516 with gnu gcc -fsanitize=undefined option
I got many warnings at run time concerning undefined variables.
Many of them at tools/clang/include/clang/Basic/VirtualFileSystem.h:62
"Status() : Type(llvm::sys::fs::file_type::status_error) {}"
that I suggest to change into
"Status() : Type(llvm::sys::fs::file_type::status_error)
{Perms=llvm::sys::fs::no_perms;IsVFSMapped=false;}"
Thus explicitely initializing two local variables to safe values
and avoiding sanitizer warnings.
I propose to put this change in the trunk version.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170504/3f60c6c5/attachment.html>
More information about the llvm-bugs
mailing list