summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.cpp
diff options
context:
space:
mode:
authorBill Wendling <morbo@google.com>2020-01-07 12:53:44 -0800
committerBill Wendling <isanbard@gmail.com>2020-01-07 13:40:26 -0800
commit52366088a8e42c2f1e96e8430b84b8b65ec3f7bc (patch)
treee8a2e167aa496592c70af28529ba313de1642575 /llvm/lib/AsmParser/LLParser.cpp
parent6652cc0cf7c0373b8af12f9e5b1a7065577a78da (diff)
downloadbcm5719-llvm-52366088a8e42c2f1e96e8430b84b8b65ec3f7bc.tar.gz
bcm5719-llvm-52366088a8e42c2f1e96e8430b84b8b65ec3f7bc.zip
Allow output constraints on "asm goto"
Summary: Remove the restrictions that preventing "asm goto" from returning non-void values. The values returned by "asm goto" are only valid on the "fallthrough" path. Reviewers: jyknight, nickdesaulniers, hfinkel Reviewed By: jyknight, nickdesaulniers Subscribers: rsmith, hiraditya, llvm-commits, cfe-commits, craig.topper, rnk Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D69876
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 1a17f633ae1..731c1cea0dc 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -6419,9 +6419,6 @@ bool LLParser::ParseCallBr(Instruction *&Inst, PerFunctionState &PFS) {
/*IsCall=*/true))
return true;
- if (isa<InlineAsm>(Callee) && !Ty->getReturnType()->isVoidTy())
- return Error(RetTypeLoc, "asm-goto outputs not supported");
-
// Set up the Attribute for the function.
SmallVector<Value *, 8> Args;
SmallVector<AttributeSet, 8> ArgAttrs;
OpenPOWER on IntegriCloud