aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/IntrinsicInst.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-06-16 23:36:12 +0000
committerJim Laskey <jlaskey@mac.com>2006-06-16 23:36:12 +0000
commitf06ef2cc16fa6b279f4ed59d89b8f14535b47b24 (patch)
tree96a39799ece25eb81f85f5eef1392f81658e08bc /lib/VMCore/IntrinsicInst.cpp
parente9493d330de67e56b2e4837371efda606f4f9e0f (diff)
downloadexternal_llvm-f06ef2cc16fa6b279f4ed59d89b8f14535b47b24.zip
external_llvm-f06ef2cc16fa6b279f4ed59d89b8f14535b47b24.tar.gz
external_llvm-f06ef2cc16fa6b279f4ed59d89b8f14535b47b24.tar.bz2
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
Diffstat (limited to 'lib/VMCore/IntrinsicInst.cpp')
-rw-r--r--lib/VMCore/IntrinsicInst.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/IntrinsicInst.cpp b/lib/VMCore/IntrinsicInst.cpp
index 598a99f..2f3ade3 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<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();
}
//===----------------------------------------------------------------------===//