We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a522ae3 commit 3c2c9d5Copy full SHA for 3c2c9d5
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -8958,9 +8958,8 @@ bool SelectionDAGBuilder::canTailCall(const CallBase &CB) const {
8958
// Avoid emitting tail calls in functions with the disable-tail-calls
8959
// attribute.
8960
const Function *Caller = CB.getParent()->getParent();
8961
- if (Caller->getFnAttribute("disable-tail-calls").getValueAsString() ==
8962
- "true" &&
8963
- !isMustTailCall)
+ if (!isMustTailCall &&
+ Caller->getFnAttribute("disable-tail-calls").getValueAsBool())
8964
return false;
8965
8966
// We can't tail call inside a function with a swifterror argument. Lowering
0 commit comments