mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 06:44:46 +01:00
Reverting changes from r196415; this patch exposed a different, but unrelated bug regarding the __has_attribute implementation. Reverting to unblock the Chrome tsan builds.
llvm-svn: 196583
This commit is contained in:
@@ -920,10 +920,7 @@ def WeakRef : InheritableAttr {
|
||||
}
|
||||
|
||||
def X86ForceAlignArgPointer : InheritableAttr, TargetSpecificAttr {
|
||||
let Spellings = [GNU<"force_align_arg_pointer">];
|
||||
// Technically, this appertains to a FunctionDecl, but the target-specific
|
||||
// code silently allows anything function-like (such as typedefs or function
|
||||
// pointers), but does not apply the attribute to them.
|
||||
let Spellings = [];
|
||||
}
|
||||
|
||||
// Attribute to disable AddressSanitizer (or equivalent) checks.
|
||||
|
||||
@@ -233,7 +233,8 @@ namespace {
|
||||
}
|
||||
}
|
||||
if (Triple.getArch() != llvm::Triple::x86_64 &&
|
||||
Attr.getKind() == AttributeList::AT_X86ForceAlignArgPointer) {
|
||||
(Attr.getName()->getName() == "force_align_arg_pointer" ||
|
||||
Attr.getName()->getName() == "__force_align_arg_pointer__")) {
|
||||
HandleX86ForceAlignArgPointerAttr(D, Attr, S);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user