diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-06-16 23:36:12 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-06-16 23:36:12 +0000 |
commit | 8dd21436db06b73f9aa482cf246c2560d2d40f49 (patch) | |
tree | dde7c05cc7d96f74ff09b13600ffcaa19f7a5af7 /llvm/lib | |
parent | 6b6e369e8ad69f3d9eb5ff9f273ac84399bddbcb (diff) | |
download | bcm5719-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.cpp | 4 |
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(); } //===----------------------------------------------------------------------===// |