]> granicus.if.org Git - clang/commitdiff
CodeGenFunction::EmitPointerWithAlignment(): Prune a \param in r303358, possibly...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 19 May 2017 10:19:59 +0000 (10:19 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 19 May 2017 10:19:59 +0000 (10:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303414 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenFunction.h

index cca11391ec729c465e854f372f06f128aa366662..ae73903d22bae97157e7bd50fa828e7d48c059ee 100644 (file)
@@ -3752,21 +3752,6 @@ public:
   ///
   /// Note that this function will conservatively fall back on the type
   /// when it doesn't 
-  ///
-  /// \param Source - If non-null, this will be initialized with
-  ///   information about the source of the alignment.  Note that this
-  ///   function will conservatively fall back on the type when it
-  ///   doesn't recognize the expression, which means that sometimes
-  ///   
-  ///   a worst-case One
-  ///   reasonable way to use this information is when there's a
-  ///   language guarantee that the pointer must be aligned to some
-  ///   stricter value, and we're simply trying to ensure that
-  ///   sufficiently obvious uses of under-aligned objects don't get
-  ///   miscompiled; for example, a placement new into the address of
-  ///   a local variable.  In such a case, it's quite reasonable to
-  ///   just ignore the returned alignment when it isn't from an
-  ///   explicit source.
   Address EmitPointerWithAlignment(const Expr *Addr,
                                    LValueBaseInfo *BaseInfo = nullptr);