aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/NVPTX
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-06-26 21:26:10 +0000
committerManman Ren <mren@apple.com>2013-06-26 21:26:10 +0000
commit02e75021d80bb068d0178f1e4fdd0a4fb36b9811 (patch)
tree45cb19def5d0e092731132f85d43fbeed95e6abd /lib/Target/NVPTX
parent8b9962d514c1834c17254e53b169bf618079562c (diff)
downloadexternal_llvm-02e75021d80bb068d0178f1e4fdd0a4fb36b9811.zip
external_llvm-02e75021d80bb068d0178f1e4fdd0a4fb36b9811.tar.gz
external_llvm-02e75021d80bb068d0178f1e4fdd0a4fb36b9811.tar.bz2
Debug Info: clean up usage of Verify.
No functionality change. It should suffice to check the type of a debug info metadata, instead of calling Verify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/NVPTX')
-rw-r--r--lib/Target/NVPTX/NVPTXAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/NVPTX/NVPTXAsmPrinter.cpp b/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
index ff73931..8ceddf3 100644
--- a/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
+++ b/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
@@ -279,7 +279,7 @@ void NVPTXAsmPrinter::emitLineNumberAsDotLoc(const MachineInstr &MI) {
const LLVMContext &ctx = MF->getFunction()->getContext();
DIScope Scope(curLoc.getScope(ctx));
- if (!Scope.Verify())
+ if (!Scope.isScope())
return;
StringRef fileName(Scope.getFilename());