[llvm-branch-commits] [llvm-branch] r100757 - /llvm/branches/ggreif/CallInst-operands/lib/VMCore/AutoUpgrade.cpp
Gabor Greif
ggreif at gmail.com
Thu Apr 8 05:30:13 PDT 2010
Author: ggreif
Date: Thu Apr 8 07:30:13 2010
New Revision: 100757
URL: http://llvm.org/viewvc/llvm-project?rev=100757&view=rev
Log:
shift operands
Modified:
llvm/branches/ggreif/CallInst-operands/lib/VMCore/AutoUpgrade.cpp
Modified: llvm/branches/ggreif/CallInst-operands/lib/VMCore/AutoUpgrade.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/lib/VMCore/AutoUpgrade.cpp?rev=100757&r1=100756&r2=100757&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/lib/VMCore/AutoUpgrade.cpp (original)
+++ llvm/branches/ggreif/CallInst-operands/lib/VMCore/AutoUpgrade.cpp Thu Apr 8 07:30:13 2010
@@ -538,7 +538,8 @@
if (Function *Declare = M->getFunction("llvm.dbg.declare")) {
if (!Declare->use_empty()) {
DbgDeclareInst *DDI = cast<DbgDeclareInst>(Declare->use_back());
- if (!isa<MDNode>(DDI->getOperand(1)) ||!isa<MDNode>(DDI->getOperand(2))) {
+ if (!isa<MDNode>(DDI->getOperand(0)) ||
+ !isa<MDNode>(DDI->getOperand(1))) {
while (!Declare->use_empty()) {
CallInst *CI = cast<CallInst>(Declare->use_back());
CI->eraseFromParent();
More information about the llvm-branch-commits
mailing list