summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-03-24 10:47:37 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-03-24 10:47:37 +0000
commit59ce9e07a4e79ee5328d8851e07953945d67b4ec (patch)
treeb1762892c47bb32712d7db6b7b21933bc4f5827d
parent89f588ff73d15d9caaf3923f008d4fb1fa5031ac (diff)
downloadbcm5719-llvm-59ce9e07a4e79ee5328d8851e07953945d67b4ec.tar.gz
bcm5719-llvm-59ce9e07a4e79ee5328d8851e07953945d67b4ec.zip
Fix a VS compile-time warning
warning C4345: behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized llvm-svn: 204597
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_flags.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_flags.cc b/compiler-rt/lib/sanitizer_common/sanitizer_flags.cc
index 2fd5d2643fd..3d809e739c4 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_flags.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_flags.cc
@@ -183,8 +183,7 @@ bool FlagInDescriptionList(const char *name) {
void AddFlagDescription(const char *name, const char *description) {
if (FlagInDescriptionList(name)) return;
- FlagDescription *new_description =
- new(allocator_for_flags) FlagDescription();
+ FlagDescription *new_description = new(allocator_for_flags) FlagDescription;
new_description->name = name;
new_description->description = description;
flag_descriptions.push_back(new_description);
OpenPOWER on IntegriCloud