From 78f99be1df9f3d14f3497130adeea193c383babd Mon Sep 17 00:00:00 2001 From: Alexei Starovoitov Date: Mon, 30 Mar 2015 22:40:35 +0000 Subject: [PATCH] [bpf] fix build fix build broken due to r233599. Would still need to switch to MDLocation long term. llvm-svn: 233619 --- llvm/lib/Target/BPF/BPFISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/BPF/BPFISelLowering.cpp b/llvm/lib/Target/BPF/BPFISelLowering.cpp index d94416b530bf..8b7a061e8218 100644 --- a/llvm/lib/Target/BPF/BPFISelLowering.cpp +++ b/llvm/lib/Target/BPF/BPFISelLowering.cpp @@ -63,8 +63,8 @@ public: std::string Str; raw_string_ostream OS(Str); - if (DLoc.isUnknown() == false) { - DILocation DIL(DLoc.getAsMDNode(Fn.getContext())); + if (DLoc) { + DILocation DIL(DLoc.getAsMDNode()); StringRef Filename = DIL.getFilename(); unsigned Line = DIL.getLineNumber(); unsigned Column = DIL.getColumnNumber(); -- 2.34.1