diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-09-21 21:36:53 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-09-21 21:36:53 +0000 |
commit | 098f5a291199ab51bb7c60259b44cb937eaf09ca (patch) | |
tree | cd9fc60c3f7875d992c647baf982f397529d1164 | |
parent | eee3afcb8640bcc8b7dff0cd0ef333eac8633a4d (diff) | |
download | bcm5719-llvm-098f5a291199ab51bb7c60259b44cb937eaf09ca.tar.gz bcm5719-llvm-098f5a291199ab51bb7c60259b44cb937eaf09ca.zip |
Tidy up. Whitepsace.
llvm-svn: 140275
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp index 044cf1591e3..8eda889155a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp @@ -49,7 +49,7 @@ namespace { static void SrcMgrDiagHandler(const SMDiagnostic &Diag, void *diagInfo) { SrcMgrDiagInfo *DiagInfo = static_cast<SrcMgrDiagInfo *>(diagInfo); assert(DiagInfo && "Diagnostic context not passed down?"); - + // If the inline asm had metadata associated with it, pull out a location // cookie corresponding to which line the error occurred on. unsigned LocCookie = 0; @@ -57,13 +57,13 @@ static void SrcMgrDiagHandler(const SMDiagnostic &Diag, void *diagInfo) { unsigned ErrorLine = Diag.getLineNo()-1; if (ErrorLine >= LocInfo->getNumOperands()) ErrorLine = 0; - + if (LocInfo->getNumOperands() != 0) if (const ConstantInt *CI = dyn_cast<ConstantInt>(LocInfo->getOperand(ErrorLine))) LocCookie = CI->getZExtValue(); } - + DiagInfo->DiagHandler(Diag, DiagInfo->DiagContext, LocCookie); } |