aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@linaro.org>2021-03-29 11:31:17 +0100
committerOliver Stannard <oliver.stannard@linaro.org>2021-03-29 11:32:22 +0100
commit07e46367baeca96d84b03fa215b41775f69d5989 (patch)
tree154a7d4ca86da09b4610d7be3b4b4fb72e612f42 /clang/lib/CodeGen/CGCall.cpp
parentb5da813fe91ee1d7b965bf3aa72e56a13d02dd7d (diff)
downloadllvm-07e46367baeca96d84b03fa215b41775f69d5989.zip
llvm-07e46367baeca96d84b03fa215b41775f69d5989.tar.gz
llvm-07e46367baeca96d84b03fa215b41775f69d5989.tar.bz2
Revert "Reapply "OpaquePtr: Turn inalloca into a type attribute""
Reverting because test 'Bindings/Go/go.test' is failing on most buildbots. This reverts commit fc9df309917e57de704f3ce4372138a8d4a23d7a.
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 1d71148..dc73e32 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -2290,7 +2290,7 @@ void CodeGenModule::ConstructAttributeList(
// Attach attributes to inalloca argument.
if (IRFunctionArgs.hasInallocaArg()) {
llvm::AttrBuilder Attrs;
- Attrs.addInAllocaAttr(FI.getArgStruct());
+ Attrs.addAttribute(llvm::Attribute::InAlloca);
ArgAttrs[IRFunctionArgs.getInallocaArgNo()] =
llvm::AttributeSet::get(getLLVMContext(), Attrs);
}