[llvm] r233619 - [bpf] fix build
Alexei Starovoitov
alexei.starovoitov at gmail.com
Mon Mar 30 15:40:36 PDT 2015
Author: ast
Date: Mon Mar 30 17:40:35 2015
New Revision: 233619
URL: http://llvm.org/viewvc/llvm-project?rev=233619&view=rev
Log:
[bpf] fix build
fix build broken due to r233599.
Would still need to switch to MDLocation long term.
Modified:
llvm/trunk/lib/Target/BPF/BPFISelLowering.cpp
Modified: llvm/trunk/lib/Target/BPF/BPFISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/BPF/BPFISelLowering.cpp?rev=233619&r1=233618&r2=233619&view=diff
==============================================================================
--- llvm/trunk/lib/Target/BPF/BPFISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/BPF/BPFISelLowering.cpp Mon Mar 30 17:40:35 2015
@@ -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();
More information about the llvm-commits
mailing list