From: Jeremy Morse Date: Thu, 14 Feb 2019 11:09:24 +0000 (+0000) Subject: Fix an accidentally flipped pair of arguments, NFCI X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8b2424477df157756c37bfc39ce385d8529f2a8;p=llvm Fix an accidentally flipped pair of arguments, NFCI While rebasing a refactor in r353950 I accidentally swapped two function arguments; one is SelectionDAGBuilders "current" DebugLoc, the other is the one from the "current" debug intrinsic. They're probably always identical, but I haven't proved that yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354019 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index f5e3905bd3a..c6338383bbd 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -5661,7 +5661,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) { if (!V) return nullptr; - if (handleDebugValue(V, Variable, Expression, DI.getDebugLoc(), dl, + if (handleDebugValue(V, Variable, Expression, dl, DI.getDebugLoc(), SDNodeOrder)) return nullptr;