aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2020-07-23 12:51:18 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2020-07-23 13:33:24 +0100
commit1003113ef0d9df744f803c1499cbfdd15ab276f6 (patch)
tree15ed7be1719c40e75bd608e4be6969b35ac6d5aa /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent9cdd68e7c1331efd3c0aec84ef925a1679a73771 (diff)
downloadllvm-1003113ef0d9df744f803c1499cbfdd15ab276f6.zip
llvm-1003113ef0d9df744f803c1499cbfdd15ab276f6.tar.gz
llvm-1003113ef0d9df744f803c1499cbfdd15ab276f6.tar.bz2
Fix -Wparentheses warning - add missing brackets around the entire assertion condition
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 6531277..bf3b89e 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -2153,11 +2153,11 @@ TargetLoweringObjectFileXCOFF::getStorageClassForGlobal(const GlobalValue *GV) {
MCSymbol *TargetLoweringObjectFileXCOFF::getFunctionEntryPointSymbol(
const GlobalValue *Func, const TargetMachine &TM) const {
assert(
- isa<Function>(Func) ||
- (isa<GlobalAlias>(Func) &&
- isa_and_nonnull<Function>(cast<GlobalAlias>(Func)->getBaseObject())) &&
- "Func must be a function or an alias which has a function as base "
- "object.");
+ (isa<Function>(Func) ||
+ (isa<GlobalAlias>(Func) &&
+ isa_and_nonnull<Function>(cast<GlobalAlias>(Func)->getBaseObject()))) &&
+ "Func must be a function or an alias which has a function as base "
+ "object.");
SmallString<128> NameStr;
NameStr.push_back('.');
getNameWithPrefix(NameStr, Func, TM);