From f06ef2cc16fa6b279f4ed59d89b8f14535b47b24 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Fri, 16 Jun 2006 23:36:12 +0000 Subject: [PATCH] Forgot operands were hard coded for compile unit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28846 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/IntrinsicInst.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/VMCore/IntrinsicInst.cpp b/lib/VMCore/IntrinsicInst.cpp index 598a99f18fd..2f3ade34c13 100644 --- a/lib/VMCore/IntrinsicInst.cpp +++ b/lib/VMCore/IntrinsicInst.cpp @@ -61,13 +61,13 @@ Value *DbgInfoIntrinsic::StripCast(Value *C) { std::string DbgStopPointInst::getFileName() const { GlobalVariable *GV = cast(getContext()); ConstantStruct *CS = cast(GV->getInitializer()); - return CS->getOperand(4)->getStringValue(); + return CS->getOperand(3)->getStringValue(); } std::string DbgStopPointInst::getDirectory() const { GlobalVariable *GV = cast(getContext()); ConstantStruct *CS = cast(GV->getInitializer()); - return CS->getOperand(5)->getStringValue(); + return CS->getOperand(4)->getStringValue(); } //===----------------------------------------------------------------------===// -- 2.34.1