diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2016-12-20 08:28:19 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2016-12-20 08:28:19 +0000 |
commit | d7738fe6ad9739e750127080a22294df39307429 (patch) | |
tree | 9698fe0b95d43a9d6f1566fdd999cc759f2d79f5 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 881989cb69c405ca92ddabccea547d91491a2d14 (diff) | |
download | bcm5719-llvm-d7738fe6ad9739e750127080a22294df39307429.tar.gz bcm5719-llvm-d7738fe6ad9739e750127080a22294df39307429.zip |
Revert r290149: Add the alloc_size attribute to clang.
This commit fails MSan when running test/CodeGen/object-size.c in
a confusing way. After some discussion with George, it isn't really
clear what is going on here. We can make the MSan failure go away by
testing for the invalid bit, but *why* things are invalid isn't clear.
And yet, other code in the surrounding area is doing precisely this and
testing for invalid.
George is going to take a closer look at this to better understand the
nature of the failure and recommit it, for now backing it out to clean
up MSan builds.
llvm-svn: 290169
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 5f06ba90cf1..f26c92d5670 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -455,10 +455,6 @@ private: bool isTriviallyRecursive(const FunctionDecl *F); bool shouldEmitFunction(GlobalDecl GD); - /// Map of the global blocks we've emitted, so that we don't have to re-emit - /// them if the constexpr evaluator gets aggressive. - llvm::DenseMap<const BlockExpr *, llvm::Constant *> EmittedGlobalBlocks; - /// @name Cache for Blocks Runtime Globals /// @{ @@ -780,16 +776,6 @@ public: /// Gets the address of a block which requires no captures. llvm::Constant *GetAddrOfGlobalBlock(const BlockExpr *BE, StringRef Name); - - /// Returns the address of a block which requires no caputres, or null if - /// we've yet to emit the block for BE. - llvm::Constant *getAddrOfGlobalBlockIfEmitted(const BlockExpr *BE) { - return EmittedGlobalBlocks.lookup(BE); - } - - /// Notes that BE's global block is available via Addr. Asserts that BE - /// isn't already emitted. - void setAddrOfGlobalBlock(const BlockExpr *BE, llvm::Constant *Addr); /// Return a pointer to a constant CFString object for the given string. ConstantAddress GetAddrOfConstantCFString(const StringLiteral *Literal); |