From 0f59312e7b625fa5821a63db65377d4b3b667e99 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Mon, 13 Apr 2009 21:47:26 +0000 Subject: Minor work related to removing the assumption that value initialization implies an all-zero bit pattern. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68994 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprAgg.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/CodeGen/CGExprAgg.cpp') diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index 3b1580cc13..acca396c0b 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -312,6 +312,7 @@ void AggExprEmitter::EmitNullInitializationToLValue(LValue LV, QualType T) { // Otherwise, just memset the whole thing to zero. This is legal // because in LLVM, all default initializers are guaranteed to have a // bit pattern of all zeros. + // FIXME: That isn't true for member pointers! // There's a potential optimization opportunity in combining // memsets; that would be easy for arrays, but relatively // difficult for structures with the current code. -- cgit v1.2.3