Unbreak DbgStopPointInst::getFileName().
authorDaniel Dunbar <daniel@zuster.org>
Sat, 11 Oct 2008 06:40:56 +0000 (06:40 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 11 Oct 2008 06:40:56 +0000 (06:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57373 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/IntrinsicInst.cpp

index 312a47f2c70c3e8f94a3172a898185b5966ad4ec..c440275fc3a09673cede716086306f8df7dd3ffe 100644 (file)
@@ -64,7 +64,7 @@ Value *DbgStopPointInst::getFileName() const {
   GlobalVariable *GV = cast<GlobalVariable>(getContext());
   if (!GV->hasInitializer()) return NULL;
   ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
-  return CS->getOperand(4);
+  return CS->getOperand(3);
 }
 
 Value *DbgStopPointInst::getDirectory() const {