mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-13 07:50:41 +00:00
Replace GlobalScopeAsm[GlobalScopeAsm.size()-1] with GlobalScopeAsm.back(), NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0c79dd7f42
commit
c60ddf6cea
@ -262,8 +262,7 @@ public:
|
||||
/// A trailing newline is added if the input doesn't have one.
|
||||
void setModuleInlineAsm(StringRef Asm) {
|
||||
GlobalScopeAsm = Asm;
|
||||
if (!GlobalScopeAsm.empty() &&
|
||||
GlobalScopeAsm[GlobalScopeAsm.size()-1] != '\n')
|
||||
if (!GlobalScopeAsm.empty() && GlobalScopeAsm.back() != '\n')
|
||||
GlobalScopeAsm += '\n';
|
||||
}
|
||||
|
||||
@ -271,8 +270,7 @@ public:
|
||||
/// A trailing newline is added if the input doesn't have one.
|
||||
void appendModuleInlineAsm(StringRef Asm) {
|
||||
GlobalScopeAsm += Asm;
|
||||
if (!GlobalScopeAsm.empty() &&
|
||||
GlobalScopeAsm[GlobalScopeAsm.size()-1] != '\n')
|
||||
if (!GlobalScopeAsm.empty() && GlobalScopeAsm.back() != '\n')
|
||||
GlobalScopeAsm += '\n';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user