Use stripPointerCasts when checking for AllocaInsts for the stackprotector intrinsic.
[oota-llvm.git] / lib / VMCore / IntrinsicInst.cpp
index 312a47f2c70c3e8f94a3172a898185b5966ad4ec..c440275fc3a09673cede716086306f8df7dd3ffe 100644 (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 {