From: Chris Lattner Date: Fri, 6 May 2005 17:13:16 +0000 (+0000) Subject: BAD typeo which caused many testsuite failures last night. Note to self, do X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3799ed83b4cb80695a81294da6a7d18cf0884f5e;p=oota-llvm.git BAD typeo which caused many testsuite failures last night. Note to self, do not change code after testing it without retesting! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21741 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp index 4513f54aa8b..5ca9577c8c1 100644 --- a/lib/Transforms/Utils/InlineFunction.cpp +++ b/lib/Transforms/Utils/InlineFunction.cpp @@ -50,7 +50,7 @@ bool llvm::InlineFunction(CallSite CS) { // If the call to the callee is a non-tail call, we must clear the 'tail' // flags on any calls that we inline. bool MustClearTailCallFlags = - isa(TheCall) || !cast(TheCall)->isTailCall(); + isa(TheCall) && !cast(TheCall)->isTailCall(); BasicBlock *OrigBB = TheCall->getParent(); Function *Caller = OrigBB->getParent();