diff --git a/llvm/include/llvm/Analysis/DebugInfo.h b/llvm/include/llvm/Analysis/DebugInfo.h index 3bd0943cb1d7..ad824dd7fe4c 100644 --- a/llvm/include/llvm/Analysis/DebugInfo.h +++ b/llvm/include/llvm/Analysis/DebugInfo.h @@ -583,12 +583,12 @@ namespace llvm { DIScope getContext() const { return getFieldAs<DIScope>(1); } StringRef getName() const { return getStringField(2); } StringRef getDirectory() const { - DIFile F = getFieldAs<DIFile>(3); - return F.getDirectory(); + DIFile F = getFieldAs<DIFile>(3); + return F.getDirectory(); } StringRef getFilename() const { - DIFile F = getFieldAs<DIFile>(3); - return F.getFilename(); + DIFile F = getFieldAs<DIFile>(3); + return F.getFilename(); } DICompileUnit getCompileUnit() const{ if (getVersion() == llvm::LLVMDebugVersion7)