diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-03-07 22:47:14 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-03-07 22:47:14 +0000 |
commit | 0507be662df482b5c67b7905ed7ca368cb5c6b69 (patch) | |
tree | 70211a3829632eeb6a05158fda0339c17c53b689 /lib/CodeGen/TargetInfo.cpp | |
parent | 4e03c2b9d735063a60cd0623423f4814178857ef (diff) |
When we adjust the inline ASM type, we need to take into account an early
clobber with the 'y' constraint. Otherwise, we get the wrong return type and an
assert, because it created a '<1 x i64>' vector type instead of the x86_mmx
type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
-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 2ffc840b9f..bd88192856 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -358,7 +358,7 @@ bool UseX86_MMXType(const llvm::Type *IRType) { static const llvm::Type* X86AdjustInlineAsmType(CodeGen::CodeGenFunction &CGF, llvm::StringRef Constraint, const llvm::Type* Ty) { - if (Constraint=="y" && Ty->isVectorTy()) + if ((Constraint == "y" || Constraint == "&y") && Ty->isVectorTy()) return llvm::Type::getX86_MMXTy(CGF.getLLVMContext()); return Ty; } |