]> granicus.if.org Git - llvm/commitdiff
Fix an accidentally flipped pair of arguments, NFCI
authorJeremy Morse <jeremy.morse.llvm@gmail.com>
Thu, 14 Feb 2019 11:09:24 +0000 (11:09 +0000)
committerJeremy Morse <jeremy.morse.llvm@gmail.com>
Thu, 14 Feb 2019 11:09:24 +0000 (11:09 +0000)
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

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index f5e3905bd3a985e7e1faf034f1dd3ddb14203a30..c6338383bbd2c042fd4b86055e78aa8d3377aa44 100644 (file)
@@ -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;