Forgot operands were hard coded for compile unit.
authorJim Laskey <jlaskey@mac.com>
Fri, 16 Jun 2006 23:36:12 +0000 (23:36 +0000)
committerJim Laskey <jlaskey@mac.com>
Fri, 16 Jun 2006 23:36:12 +0000 (23:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28846 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/IntrinsicInst.cpp

index 598a99f18fdf708d97a8fece0dc7e184d3896487..2f3ade34c13950f0e03a6468228c76db8e0e33fc 100644 (file)
@@ -61,13 +61,13 @@ Value *DbgInfoIntrinsic::StripCast(Value *C) {
 std::string DbgStopPointInst::getFileName() const {
   GlobalVariable *GV = cast<GlobalVariable>(getContext());
   ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
-  return CS->getOperand(4)->getStringValue();
+  return CS->getOperand(3)->getStringValue();
 }
 
 std::string DbgStopPointInst::getDirectory() const {
   GlobalVariable *GV = cast<GlobalVariable>(getContext());
   ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
-  return CS->getOperand(5)->getStringValue();
+  return CS->getOperand(4)->getStringValue();
 }
 
 //===----------------------------------------------------------------------===//