diff options
author | Stephen Hines <srhines@google.com> | 2016-03-10 16:52:59 -0800 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2016-03-17 13:40:05 -0700 |
commit | 3bd7be39de21405059e7a7ac22d97dc80cecdf8e (patch) | |
tree | 91ede61f87133d9edd2dd1272e37a018ce5940b0 /lib | |
parent | 87d948ecccffea9e9e37d0d053b246e2d6d6c47b (diff) | |
download | clang-3bd7be39de21405059e7a7ac22d97dc80cecdf8e.tar.gz |
Fix ARM ABI issues for RenderScript.
Bug: http://b/26987366
Although I did upstream a working patch for our ARM ABI vector problems,
the patch is insufficient for RenderScript, as it is *NOT* an Android
target. It is a generic Linux target, so we need to also check our
LanguageOptions to see if we should use the alternate vector ABI.
Change-Id: I7d026b2456f6262aff69627e33cfd4552f418378
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 84ffef0d1b..9457b6848f 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -4773,7 +4773,7 @@ public: bool isAndroid() const { return (getTarget().getTriple().getEnvironment() == - llvm::Triple::Android); + llvm::Triple::Android || getContext().getLangOpts().Renderscript); } ABIKind getABIKind() const { return Kind; } |