aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2017-05-19 10:19:59 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2017-05-19 10:19:59 +0000
commit76f938692fe4b4991087e083dbdbdc40a2352ebf (patch)
treedf56f0c56d3b4fd741a98171621c69fbac951c44 /clang/lib/CodeGen/CodeGenFunction.h
parent6a36c647209ffc39eab545e67fd2e3a0338f91d3 (diff)
downloadllvm-76f938692fe4b4991087e083dbdbdc40a2352ebf.zip
llvm-76f938692fe4b4991087e083dbdbdc40a2352ebf.tar.gz
llvm-76f938692fe4b4991087e083dbdbdc40a2352ebf.tar.bz2
CodeGenFunction::EmitPointerWithAlignment(): Prune a \param in r303358, possibly obsolete. [-Wdocumentation]
llvm-svn: 303414
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index cca1139..ae73903 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -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);