summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2018-12-14 22:41:18 +0000
committerErich Keane <erich.keane@intel.com>2018-12-14 22:41:18 +0000
commit1b9c746034f15aca6039d2369068346f09a2d62f (patch)
tree63959ac27600a588c3216171dc7757e42284a50b /clang/lib/Sema/SemaInit.cpp
parent5bf71d11274b388364384771e5cf245985943abe (diff)
downloadbcm5719-llvm-1b9c746034f15aca6039d2369068346f09a2d62f.tar.gz
bcm5719-llvm-1b9c746034f15aca6039d2369068346f09a2d62f.zip
Revert "Add extension to always default-initialize nullptr_t."
This reverts commit 46efdf2ccc2a80aefebf8433dbf9c7c959f6e629. Richard Smith commented just after I submitted this that this is the wrong solution. Reverting so that I can fix differently. llvm-svn: 349206
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
-rw-r--r--clang/lib/Sema/SemaInit.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index 57277f6e829..c2f14229d8d 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/lib/Sema/SemaInit.cpp
@@ -4881,13 +4881,6 @@ static void TryDefaultInitialization(Sema &S,
return;
}
- // As an extension, and to fix Core issue 1013, zero initialize nullptr_t.
- // Since there is only 1 valid value of nullptr_t, we can just use that.
- if (DestType->isNullPtrType()) {
- Sequence.AddZeroInitializationStep(Entity.getType());
- return;
- }
-
// - otherwise, no initialization is performed.
// If a program calls for the default initialization of an object of
OpenPOWER on IntegriCloud