diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-30 19:49:49 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-30 19:49:49 +0000 |
commit | ec819c096b9babe09ccf93db1709f6b04c706a3c (patch) | |
tree | 67a413cf878c6d12135ad1a8286693b13c9c0937 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | e50adcb6b1b7e8317cca7ed5f8860a40ca6b7196 (diff) | |
download | bcm5719-llvm-ec819c096b9babe09ccf93db1709f6b04c706a3c.tar.gz bcm5719-llvm-ec819c096b9babe09ccf93db1709f6b04c706a3c.zip |
Transforms: Use the new DebugLoc API, NFC
Update lib/Analysis and lib/Transforms to use the new `DebugLoc` API.
llvm-svn: 233587
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 66a3592c5c9..6d260088934 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -504,8 +504,7 @@ static std::string getDebugLocString(const Loop *L) { std::string Result; if (L) { raw_string_ostream OS(Result); - const DebugLoc LoopDbgLoc = L->getStartLoc(); - if (!LoopDbgLoc.isUnknown()) + if (const DebugLoc LoopDbgLoc = L->getStartLoc()) LoopDbgLoc.print(OS); else // Just print the module name. |