summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-10-17 18:01:34 +0000
committerTanya Lattner <tonic@nondot.org>2008-10-17 18:01:34 +0000
commit3f523e324876c4d7ccdbdd39cc943ea32fa01357 (patch)
treea786d4cbd2ba47def233e0d807d28327a858a421
parenta9616b85c76df1a15606073ac9d714f094b0b855 (diff)
downloadllvm-3f523e324876c4d7ccdbdd39cc943ea32fa01357.tar.gz
Merge from mainline.
Unbreak DbgStopPointInst::getFileName(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_24@57705 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/IntrinsicInst.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/IntrinsicInst.cpp b/lib/VMCore/IntrinsicInst.cpp
index 312a47f2c70c..c440275fc3a0 100644
--- a/lib/VMCore/IntrinsicInst.cpp
+++ b/lib/VMCore/IntrinsicInst.cpp
@@ -64,7 +64,7 @@ Value *DbgStopPointInst::getFileName() const {
GlobalVariable *GV = cast<GlobalVariable>(getContext());
if (!GV->hasInitializer()) return NULL;
ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
- return CS->getOperand(4);
+ return CS->getOperand(3);
}
Value *DbgStopPointInst::getDirectory() const {