From: Alexei Starovoitov Date: Mon, 30 Mar 2015 22:40:35 +0000 (+0000) Subject: [bpf] fix build X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=adb58c18f58c3e4e32bfcdcfd3599fdfcc30be55;p=oota-llvm.git [bpf] fix build fix build broken due to r233599. Would still need to switch to MDLocation long term. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233619 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/BPF/BPFISelLowering.cpp b/lib/Target/BPF/BPFISelLowering.cpp index d94416b530b..8b7a061e821 100644 --- a/lib/Target/BPF/BPFISelLowering.cpp +++ b/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();