summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/BPF/BPFISelLowering.cpp
diff options
context:
space:
mode:
authorAlexei Starovoitov <alexei.starovoitov@gmail.com>2015-03-30 22:40:35 +0000
committerAlexei Starovoitov <alexei.starovoitov@gmail.com>2015-03-30 22:40:35 +0000
commit78f99be1df9f3d14f3497130adeea193c383babd (patch)
tree9e7e723d77cf501cf23239f4c5d6e4cacb3aee80 /llvm/lib/Target/BPF/BPFISelLowering.cpp
parentcb576ef41574d38b8ad7c5b2a176fe29eac159e6 (diff)
downloadbcm5719-llvm-78f99be1df9f3d14f3497130adeea193c383babd.tar.gz
bcm5719-llvm-78f99be1df9f3d14f3497130adeea193c383babd.zip
[bpf] fix build
fix build broken due to r233599. Would still need to switch to MDLocation long term. llvm-svn: 233619
Diffstat (limited to 'llvm/lib/Target/BPF/BPFISelLowering.cpp')
-rw-r--r--llvm/lib/Target/BPF/BPFISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/BPF/BPFISelLowering.cpp b/llvm/lib/Target/BPF/BPFISelLowering.cpp
index d94416b530b..8b7a061e821 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();
OpenPOWER on IntegriCloud