summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit8dd21436db06b73f9aa482cf246c2560d2d40f49 (patch)
treedde7c05cc7d96f74ff09b13600ffcaa19f7a5af7 /llvm/lib
parent6b6e369e8ad69f3d9eb5ff9f273ac84399bddbcb (diff)
downloadbcm5719-llvm-8dd21436db06b73f9aa482cf246c2560d2d40f49.tar.gz
bcm5719-llvm-8dd21436db06b73f9aa482cf246c2560d2d40f49.zip
Forgot operands were hard coded for compile unit.
llvm-svn: 28846
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/IntrinsicInst.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/IntrinsicInst.cpp b/llvm/lib/VMCore/IntrinsicInst.cpp
index 598a99f18fd..2f3ade34c13 100644
--- a/llvm/lib/VMCore/IntrinsicInst.cpp
+++ b/llvm/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();
}
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud