From: Jim Laskey Date: Fri, 16 Jun 2006 23:36:12 +0000 (+0000) Subject: Forgot operands were hard coded for compile unit. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f06ef2cc16fa6b279f4ed59d89b8f14535b47b24;p=oota-llvm.git 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 --- 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(); } //===----------------------------------------------------------------------===//