Unbreak DbgStopPointInst::getFileName().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57373 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2008-10-11 06:40:56 +00:00
parent 3c26101669
commit ce91ec285d

View File

@ -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 {